#4A2871

Closest named color: Royal Purple (#4B006E). oklch(36% 0.122 302.1), rgb(74, 40, 113).

Aa

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

About this color

#4A2871 is a dark, moderately saturated purple. In OKLCH its lightness is 36%, its chroma 0.122 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.060 away. White text reads best on it, at 11.45:1.

Hue familyPurples
Lightnessdark (36%)
Chromamoderately saturated (0.122)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.83:1
White text11.45:1

Values

HEX#4A2871
RGBrgb(74, 40, 113)
HSLhsl(268, 48%, 30%)
OKLCHoklch(36% 0.122 302.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 #4A2871 11.45:1 AAA Lc -99.7 Preferred for body text
Black text on #4A2871 1.83:1 Fails Lc 7.9 Not readable
#4A2871 text on white 11.45:1 AAA Lc 96.0 Preferred for body text
#4A2871 text on black 1.83:1 Fails Lc 0.0 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 900.

  1. Step 50

    50

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #EDE6F9

    oklch(93.6% 0.026 302.6)

  3. Step 200

    200

    #DFD2F6

    oklch(88.5% 0.051 301.8)

  4. Step 300

    300

    #CBB3F2

    oklch(80.9% 0.091 301.8)

  5. Step 400

    400

    #B288EC

    oklch(70.6% 0.147 302.1)

  6. Step 500

    500

    #A067E5

    oklch(63.1% 0.186 302.2)

  7. Step 600

    600

    #8B4AD3

    oklch(55.6% 0.202 302)

  8. Step 700

    700

    #773AB7

    oklch(49.2% 0.188 302.3)

  9. Step 800

    800

    #603194

    oklch(42.7% 0.156 301.9)

  10. Step 900

    900 (this color)

    #4A2871

    oklch(36% 0.122 302.1)

  11. Step 950

    950

    #2E1B45

    oklch(27% 0.077 302.4)

Export this scale for Tailwind in the Tailwind colors tool

#4A2871 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)#0039730.096
Deuteranopia (no green cones)#11396F0.088
Tritanopia (no blue cones)#4237480.090
Achromatopsia (no color)#3A3A3A0.122

Harmonies

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

Complementary

The opposite hue (180°).

  • #4A2871

    #4A2871

    oklch(36% 0.122 302.1)

  • #364400

    #364400

    oklch(36.1% 0.088 121.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4A2871

    #4A2871

    oklch(36% 0.122 302.1)

  • #29347C

    #29347C

    oklch(36% 0.122 272.2)

  • #5F1E59

    #5F1E59

    oklch(36% 0.121 331.6)

Open the analogous palette in the generator

Split complementary

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

  • #4A2871

    #4A2871

    oklch(36% 0.122 302.1)

  • #4B3B00

    #4B3B00

    oklch(35.9% 0.073 91.6)

  • #004B23

    #004B23

    oklch(36.2% 0.095 152.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4A2871

    #4A2871

    oklch(36% 0.122 302.1)

  • #5B3100

    #5B3100

    oklch(35.9% 0.083 61.8)

  • #004840

    #004840

    oklch(36% 0.064 182.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4A2871

    #4A2871

    oklch(36% 0.122 302.1)

  • #6F1A0B

    #6F1A0B

    oklch(36% 0.121 32.3)

  • #364400

    #364400

    oklch(36.1% 0.088 121.9)

  • #004650

    #004650

    oklch(36.1% 0.063 210.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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