#7F40CB

Closest named color: Blue Violet (#8A2BE2). oklch(52.4% 0.204 300.1), rgb(127, 64, 203).

Aa

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

About this color

#7F40CB is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.204 and its hue 300°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Blue Violet (#8A2BE2), ΔE 0.048 away. White text reads best on it, at 6.00:1.

Hue familyPurples
Lightnessmedium-dark (52%)
Chromavivid (0.204)
Temperaturein between
Nearest nameBlue Violet (#8A2BE2)
Black text3.49:1
White text6.00:1

Values

HEX#7F40CB
RGBrgb(127, 64, 203)
HSLhsl(267, 57%, 52%)
OKLCHoklch(52.4% 0.204 300.1)

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 #7F40CB 6.00:1 AA Lc -84.5 Fine for body text
Black text on #7F40CB 3.49:1 AA large text Lc 24.8 Dividers and decoration only
#7F40CB text on white 6.00:1 AA Lc 79.3 Fine for body text
#7F40CB text on black 3.49:1 AA large text Lc -22.5 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 600.

  1. Step 50

    50

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #ECE6F9

    oklch(93.5% 0.026 300.3)

  3. Step 200

    200

    #DED2F7

    oklch(88.5% 0.052 300.1)

  4. Step 300

    300

    #CAB3F4

    oklch(80.9% 0.093 300.5)

  5. Step 400

    400

    #AF89EE

    oklch(70.6% 0.148 300)

  6. Step 500

    500

    #9D68E8

    oklch(63.2% 0.188 300.2)

  7. Step 600

    600 (this color)

    #7F40CB

    oklch(52.4% 0.204 300.1)

  8. Step 700

    700

    #743BB9

    oklch(49.1% 0.189 300.2)

  9. Step 800

    800

    #5E3296

    oklch(42.7% 0.157 300)

  10. Step 900

    900

    #4D2D78

    oklch(37.7% 0.124 300.2)

  11. Step 950

    950

    #2D1B46

    oklch(27% 0.078 300.6)

Export this scale for Tailwind in the Tailwind colors tool

#7F40CB 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)#0063CF0.144
Deuteranopia (no green cones)#0062C80.145
Tritanopia (no blue cones)#6E61810.152
Achromatopsia (no color)#6363630.206

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F40CB

    #7F40CB

    oklch(52.4% 0.204 300.1)

  • #617400

    #617400

    oklch(52.5% 0.125 120.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F40CB

    #7F40CB

    oklch(52.4% 0.204 300.1)

  • #4058DD

    #4058DD

    oklch(52.4% 0.204 270)

  • #A62AA0

    #A62AA0

    oklch(52.4% 0.204 330.2)

Open the analogous palette in the generator

Split complementary

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

  • #7F40CB

    #7F40CB

    oklch(52.4% 0.204 300.1)

  • #826600

    #826600

    oklch(52.3% 0.107 89.8)

  • #008039

    #008039

    oklch(52.4% 0.144 150)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F40CB

    #7F40CB

    oklch(52.4% 0.204 300.1)

  • #9C5600

    #9C5600

    oklch(52.5% 0.123 60.3)

  • #007B6C

    #007B6C

    oklch(52.2% 0.095 180.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F40CB

    #7F40CB

    oklch(52.4% 0.204 300.1)

  • #C41808

    #C41808

    oklch(52.3% 0.204 30.1)

  • #617400

    #617400

    oklch(52.5% 0.125 120.4)

  • #007887

    #007887

    oklch(52.5% 0.091 209.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7F40CB 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.