#A31158

Closest named color: Violet Red (#A50055). oklch(47% 0.182 359.3), rgb(163, 17, 88).

Aa

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

About this color

#A31158 is a medium-dark, vivid red. In OKLCH its lightness is 47%, its chroma 0.182 and its hue 359°. Its hue sits on the warm side of the wheel. The nearest named color is Violet Red (#A50055), ΔE 0.009 away. White text reads best on it, at 7.55:1.

Hue familyReds
Lightnessmedium-dark (47%)
Chromavivid (0.182)
Temperaturewarm
Nearest nameViolet Red (#A50055)
Black text2.77:1
White text7.55:1

Values

HEX#A31158
RGBrgb(163, 17, 88)
HSLhsl(331, 81%, 35%)
OKLCHoklch(47% 0.182 359.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 #A31158 7.55:1 AAA Lc -89.3 Fine for body text
Black text on #A31158 2.77:1 Fails Lc 19.6 Dividers and decoration only
#A31158 text on white 7.55:1 AAA Lc 84.4 Fine for body text
#A31158 text on black 2.77:1 Fails Lc -17.6 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

    #FDF2F5

    oklch(97.1% 0.012 358.8)

  2. Step 100

    100

    #F9E3E9

    oklch(93.5% 0.025 359.2)

  3. Step 200

    200

    #F6CCD8

    oklch(88.5% 0.05 359.1)

  4. Step 300

    300

    #F0A9BF

    oklch(80.8% 0.088 359)

  5. Step 400

    400

    #E5789E

    oklch(70.6% 0.14 359.2)

  6. Step 500

    500

    #DA5086

    oklch(63% 0.179 359.4)

  7. Step 600

    600

    #C62C70

    oklch(55.7% 0.195 359.4)

  8. Step 700

    700 (this color)

    #A31158

    oklch(47% 0.182 359.3)

  9. Step 800

    800

    #8A1B4D

    oklch(42.6% 0.151 358.9)

  10. Step 900

    900

    #6F1F40

    oklch(37.7% 0.117 359.1)

  11. Step 950

    950

    #421425

    oklch(27.1% 0.074 0.3)

Export this scale for Tailwind in the Tailwind colors tool

#A31158 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)#3A43590.206
Deuteranopia (no green cones)#605E550.184
Tritanopia (no blue cones)#B100350.059
Achromatopsia (no color)#5454540.183

Harmonies

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

Complementary

The opposite hue (180°).

  • #A31158

    #A31158

    oklch(47% 0.182 359.3)

  • #006A5C

    #006A5C

    oklch(47% 0.085 179.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A31158

    #A31158

    oklch(47% 0.182 359.3)

  • #8E248B

    #8E248B

    oklch(47% 0.182 329.2)

  • #A9150D

    #A9150D

    oklch(47% 0.181 29.3)

Open the analogous palette in the generator

Split complementary

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

  • #A31158

    #A31158

    oklch(47% 0.182 359.3)

  • #006E2E

    #006E2E

    oklch(47% 0.131 149.4)

  • #006773

    #006773

    oklch(47% 0.081 208.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A31158

    #A31158

    oklch(47% 0.182 359.3)

  • #546300

    #546300

    oklch(47% 0.111 119.5)

  • #006190

    #006190

    oklch(46.9% 0.107 239.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A31158

    #A31158

    oklch(47% 0.182 359.3)

  • #705700

    #705700

    oklch(46.9% 0.096 89.3)

  • #006A5C

    #006A5C

    oklch(47% 0.085 179.5)

  • #344CBF

    #344CBF

    oklch(47.1% 0.182 269.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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