#4D40A6

Closest named color: Blueberry (#464196). oklch(44.5% 0.158 283.7), rgb(77, 64, 166).

Aa

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

About this color

#4D40A6 is a dark, vivid purple. In OKLCH its lightness is 44%, its chroma 0.158 and its hue 284°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.028 away. White text reads best on it, at 8.07:1.

Hue familyPurples
Lightnessdark (44%)
Chromavivid (0.158)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.59:1
White text8.07:1

Values

HEX#4D40A6
RGBrgb(77, 64, 166)
HSLhsl(248, 44%, 45%)
OKLCHoklch(44.5% 0.158 283.7)

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 #4D40A6 8.07:1 AAA Lc -92.3 Preferred for body text
Black text on #4D40A6 2.59:1 Fails Lc 16.4 Dividers and decoration only
#4D40A6 text on white 8.07:1 AAA Lc 87.6 Fine for body text
#4D40A6 text on black 2.59:1 Fails Lc -14.6 Not readable

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 800.

  1. Step 50

    50

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E7E8FC

    oklch(93.6% 0.027 283.6)

  3. Step 200

    200

    #D4D5FB

    oklch(88.4% 0.052 284.1)

  4. Step 300

    300

    #B9B9FB

    oklch(80.9% 0.093 284.1)

  5. Step 400

    400

    #9692F8

    oklch(70.7% 0.147 283.8)

  6. Step 500

    500

    #7F73F5

    oklch(63.1% 0.188 283.8)

  7. Step 600

    600

    #6A57E4

    oklch(55.6% 0.205 283.6)

  8. Step 700

    700

    #5946C6

    oklch(49.1% 0.19 283.7)

  9. Step 800

    800 (this color)

    #4D40A6

    oklch(44.5% 0.158 283.7)

  10. Step 900

    900

    #3C347F

    oklch(37.7% 0.122 283.7)

  11. Step 950

    950

    #231F4A

    oklch(27% 0.077 284.2)

Export this scale for Tailwind in the Tailwind colors tool

#4D40A6 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)#0053A90.075
Deuteranopia (no green cones)#004DA40.073
Tritanopia (no blue cones)#28586D0.132
Achromatopsia (no color)#5050500.158

Harmonies

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

Complementary

The opposite hue (180°).

  • #4D40A6

    #4D40A6

    oklch(44.5% 0.158 283.7)

  • #5D5600

    #5D5600

    oklch(44.6% 0.094 104.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4D40A6

    #4D40A6

    oklch(44.5% 0.158 283.7)

  • #00539F

    #00539F

    oklch(44.5% 0.141 253.9)

  • #72308F

    #72308F

    oklch(44.4% 0.157 313.9)

Open the analogous palette in the generator

Split complementary

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

  • #4D40A6

    #4D40A6

    oklch(44.5% 0.158 283.7)

  • #734A00

    #734A00

    oklch(44.5% 0.095 73)

  • #346200

    #346200

    oklch(44.5% 0.127 133.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4D40A6

    #4D40A6

    oklch(44.5% 0.158 283.7)

  • #8C3500

    #8C3500

    oklch(44.6% 0.13 43.8)

  • #006445

    #006445

    oklch(44.5% 0.095 163.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4D40A6

    #4D40A6

    oklch(44.5% 0.158 283.7)

  • #971B39

    #971B39

    oklch(44.5% 0.158 13.6)

  • #5D5600

    #5D5600

    oklch(44.6% 0.094 104.1)

  • #006160

    #006160

    oklch(44.6% 0.076 193.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4D40A6 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.