#A840C3

Closest named color: Purply (#983FB2). oklch(56.9% 0.208 318.6), rgb(168, 64, 195).

Aa

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

About this color

#A840C3 is a medium-dark, vivid purple. In OKLCH its lightness is 57%, its chroma 0.208 and its hue 319°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.039 away. White text reads best on it, at 5.01:1.

Hue familyPurples
Lightnessmedium-dark (57%)
Chromavivid (0.208)
Temperaturein between
Nearest namePurply (#983FB2)
Black text4.18:1
White text5.01:1

Values

HEX#A840C3
RGBrgb(168, 64, 195)
HSLhsl(288, 52%, 51%)
OKLCHoklch(56.9% 0.208 318.6)

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 #A840C3 5.01:1 AA Lc -79.3 Fine for body text
Black text on #A840C3 4.18:1 AA large text Lc 30.2 Non-text elements, placeholder text
#A840C3 text on white 5.01:1 AA Lc 73.8 Content text, not long reading
#A840C3 text on black 4.18:1 AA large text Lc -27.9 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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F2E4F6

    oklch(93.5% 0.028 318.7)

  3. Step 200

    200

    #E8CFF0

    oklch(88.5% 0.052 317.9)

  4. Step 300

    300

    #DBAEE8

    oklch(81% 0.093 318.6)

  5. Step 400

    400

    #C880DC

    oklch(70.8% 0.15 318.7)

  6. Step 500

    500

    #B95BD2

    oklch(63.1% 0.192 318.8)

  7. Step 600

    600 (this color)

    #A840C3

    oklch(56.9% 0.208 318.6)

  8. Step 700

    700

    #8C2CA5

    oklch(49.1% 0.194 318.4)

  9. Step 800

    800

    #722785

    oklch(42.7% 0.16 318.8)

  10. Step 900

    900

    #5C266B

    oklch(37.7% 0.124 318.3)

  11. Step 950

    950

    #36173F

    oklch(27% 0.08 318.1)

Export this scale for Tailwind in the Tailwind colors tool

#A840C3 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)#0668C70.207
Deuteranopia (no green cones)#4773C00.177
Tritanopia (no blue cones)#A8587C0.131
Achromatopsia (no color)#6F6F6F0.210

Harmonies

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

Complementary

The opposite hue (180°).

  • #A840C3

    #A840C3

    oklch(56.9% 0.208 318.6)

  • #348E00

    #348E00

    oklch(57% 0.178 138.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A840C3

    #A840C3

    oklch(56.9% 0.208 318.6)

  • #7856E7

    #7856E7

    oklch(56.8% 0.209 288.8)

  • #C72C8B

    #C72C8B

    oklch(56.8% 0.208 348.5)

Open the analogous palette in the generator

Split complementary

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

  • #A840C3

    #A840C3

    oklch(56.9% 0.208 318.6)

  • #7E7C00

    #7E7C00

    oklch(56.9% 0.123 108.6)

  • #008C6B

    #008C6B

    oklch(56.9% 0.114 168.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A840C3

    #A840C3

    oklch(56.9% 0.208 318.6)

  • #9C6D00

    #9C6D00

    oklch(56.9% 0.118 78.8)

  • #00888C

    #00888C

    oklch(56.9% 0.097 198.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A840C3

    #A840C3

    oklch(56.9% 0.208 318.6)

  • #BC5400

    #BC5400

    oklch(56.9% 0.154 48.4)

  • #348E00

    #348E00

    oklch(57% 0.178 138.7)

  • #0083AB

    #0083AB

    oklch(57% 0.112 228.4)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #A840C3.

Similar named colors

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

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