#7940BF

Closest named color: Bluey Purple (#6241C7). oklch(50.8% 0.19 300.3), rgb(121, 64, 191).

Aa

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

About this color

#7940BF is a medium-dark, vivid purple. In OKLCH its lightness is 51%, its chroma 0.190 and its hue 300°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Bluey Purple (#6241C7), ΔE 0.044 away. White text reads best on it, at 6.36:1.

Hue familyPurples
Lightnessmedium-dark (51%)
Chromavivid (0.190)
Temperaturein between
Nearest nameBluey Purple (#6241C7)
Black text3.29:1
White text6.36:1

Values

HEX#7940BF
RGBrgb(121, 64, 191)
HSLhsl(267, 50%, 50%)
OKLCHoklch(50.8% 0.19 300.3)

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 #7940BF 6.36:1 AA Lc -86.2 Fine for body text
Black text on #7940BF 3.29:1 AA large text Lc 23.0 Dividers and decoration only
#7940BF text on white 6.36:1 AA Lc 81.1 Fine for body text
#7940BF text on black 3.29:1 AA large text Lc -20.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

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #ECE6F9

    oklch(93.5% 0.026 300.3)

  3. Step 200

    200

    #DED2F6

    oklch(88.5% 0.051 300.6)

  4. Step 300

    300

    #CAB3F3

    oklch(80.8% 0.092 300.8)

  5. Step 400

    400

    #B089EE

    oklch(70.7% 0.148 300.5)

  6. Step 500

    500

    #9D68E8

    oklch(63.2% 0.188 300.2)

  7. Step 600

    600

    #894BD6

    oklch(55.7% 0.204 300.3)

  8. Step 700

    700 (this color)

    #7940BF

    oklch(50.8% 0.19 300.3)

  9. Step 800

    800

    #5E3296

    oklch(42.7% 0.157 300)

  10. Step 900

    900

    #4D2D77

    oklch(37.6% 0.122 300.6)

  11. Step 950

    950

    #2D1B46

    oklch(27% 0.078 300.6)

Export this scale for Tailwind in the Tailwind colors tool

#7940BF 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)#005FC30.137
Deuteranopia (no green cones)#005EBC0.138
Tritanopia (no blue cones)#6A5D7A0.142
Achromatopsia (no color)#5F5F5F0.191

Harmonies

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

Complementary

The opposite hue (180°).

  • #7940BF

    #7940BF

    oklch(50.8% 0.19 300.3)

  • #5D6F00

    #5D6F00

    oklch(50.9% 0.121 120.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7940BF

    #7940BF

    oklch(50.8% 0.19 300.3)

  • #3F55D0

    #3F55D0

    oklch(50.7% 0.19 270.4)

  • #9D2D97

    #9D2D97

    oklch(50.8% 0.189 330.2)

Open the analogous palette in the generator

Split complementary

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

  • #7940BF

    #7940BF

    oklch(50.8% 0.19 300.3)

  • #7C6200

    #7C6200

    oklch(50.8% 0.104 90.5)

  • #007A37

    #007A37

    oklch(50.7% 0.138 150.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7940BF

    #7940BF

    oklch(50.8% 0.19 300.3)

  • #955200

    #955200

    oklch(50.8% 0.119 60.4)

  • #007668

    #007668

    oklch(50.7% 0.092 180.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7940BF

    #7940BF

    oklch(50.8% 0.19 300.3)

  • #B92010

    #B92010

    oklch(50.7% 0.189 30.4)

  • #5D6F00

    #5D6F00

    oklch(50.9% 0.121 120.2)

  • #007381

    #007381

    oklch(50.9% 0.088 209.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7940BF 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.