#781FD5

Closest named color: Blue Violet (#8A2BE2). oklch(49.3% 0.245 298.2), rgb(120, 31, 213).

Aa

White text reads best on this color (7.10:1).

About this color

#781FD5 is a medium-dark, vivid purple. In OKLCH its lightness is 49%, its chroma 0.245 and its hue 298°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Blue Violet (#8A2BE2), ΔE 0.044 away. White text reads best on it, at 7.10:1.

Hue familyPurples
Lightnessmedium-dark (49%)
Chromavivid (0.245)
Temperaturein between
Nearest nameBlue Violet (#8A2BE2)
Black text2.95:1
White text7.10:1

Values

HEX#781FD5
RGBrgb(120, 31, 213)
HSLhsl(269, 75%, 48%)
OKLCHoklch(49.3% 0.245 298.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #781FD5 7.10:1 AAA Lc -88.1 Fine for body text
Black text on #781FD5 2.95:1 Fails Lc 20.9 Dividers and decoration only
#781FD5 text on white 7.10:1 AAA Lc 83.1 Fine for body text
#781FD5 text on black 2.95:1 Fails Lc -18.8 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #F6F3FF

    oklch(97% 0.016 297.5)

  2. Step 100

    100

    #ECE5FE

    oklch(93.5% 0.034 298.5)

  3. Step 200

    200

    #DED1FF

    oklch(88.6% 0.064 298)

  4. Step 300

    300

    #C9B1FF

    oklch(80.9% 0.111 298)

  5. Step 400

    400

    #B084FF

    oklch(70.8% 0.177 298.3)

  6. Step 500

    500

    #9E5CFF

    oklch(63.1% 0.231 298.1)

  7. Step 600

    600

    #8C31F4

    oklch(55.6% 0.263 298.1)

  8. Step 700

    700 (this color)

    #781FD5

    oklch(49.3% 0.245 298.2)

  9. Step 800

    800

    #611FAC

    oklch(42.8% 0.202 298.1)

  10. Step 900

    900

    #4F2388

    oklch(37.8% 0.157 298.3)

  11. Step 950

    950

    #2E1650

    oklch(27% 0.101 298.3)

Export this scale for Tailwind in the Tailwind colors tool

#781FD5 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0058DA0.151
Deuteranopia (no green cones)#0056D20.151
Tritanopia (no blue cones)#60577F0.181
Achromatopsia (no color)#5858580.247

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #781FD5

    #781FD5

    oklch(49.3% 0.245 298.2)

  • #5C6900

    #5C6900

    oklch(49.2% 0.114 117.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #781FD5

    #781FD5

    oklch(49.3% 0.245 298.2)

  • #2D44E8

    #2D44E8

    oklch(49.2% 0.244 268.3)

  • #9F009F

    #9F009F

    oklch(49.3% 0.227 328.4)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #781FD5

    #781FD5

    oklch(49.3% 0.245 298.2)

  • #795D00

    #795D00

    oklch(49.3% 0.101 88.1)

  • #00762D

    #00762D

    oklch(49.4% 0.142 148.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #781FD5

    #781FD5

    oklch(49.3% 0.245 298.2)

  • #914D00

    #914D00

    oklch(49.3% 0.118 58.3)

  • #007261

    #007261

    oklch(49.4% 0.091 177.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #781FD5

    #781FD5

    oklch(49.3% 0.245 298.2)

  • #B80009

    #B80009

    oklch(49.2% 0.201 28.2)

  • #5C6900

    #5C6900

    oklch(49.2% 0.114 117.9)

  • #006E7A

    #006E7A

    oklch(49.2% 0.085 207.9)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #781FD5, closest first.

No curated palette has a color within ΔE 0.04 of #781FD5.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #781FD5 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.