#642878

Closest named color: Rebecca Purple (#663399). oklch(40% 0.139 316.7), rgb(100, 40, 120).

Aa

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

About this color

#642878 is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.139 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.057 away. White text reads best on it, at 9.92:1.

Hue familyPurples
Lightnessdark (40%)
Chromamoderately saturated (0.139)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.11:1
White text9.92:1

Values

HEX#642878
RGBrgb(100, 40, 120)
HSLhsl(285, 50%, 31%)
OKLCHoklch(40% 0.139 316.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 #642878 9.92:1 AAA Lc -96.6 Preferred for body text
Black text on #642878 2.11:1 Fails Lc 11.5 Not readable
#642878 text on white 9.92:1 AAA Lc 92.4 Preferred for body text
#642878 text on black 2.11:1 Fails Lc -10.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

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F2E4F8

    oklch(93.6% 0.031 315.9)

  3. Step 200

    200

    #E9CEF3

    oklch(88.5% 0.058 316.9)

  4. Step 300

    300

    #DCACEE

    oklch(81% 0.104 316.6)

  5. Step 400

    400

    #C97CE5

    oklch(70.7% 0.167 316.5)

  6. Step 500

    500

    #BA54DD

    oklch(63% 0.213 316.5)

  7. Step 600

    600

    #A630CA

    oklch(55.5% 0.232 316.8)

  8. Step 700

    700

    #8E20AF

    oklch(49.1% 0.215 316.6)

  9. Step 800

    800

    #731F8E

    oklch(42.7% 0.178 316.3)

  10. Step 900

    900 (this color)

    #642878

    oklch(40% 0.139 316.7)

  11. Step 950

    950

    #371542

    oklch(27% 0.088 317.1)

Export this scale for Tailwind in the Tailwind colors tool

#642878 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)#0B3F7A0.133
Deuteranopia (no green cones)#2945760.116
Tritanopia (no blue cones)#63364C0.089
Achromatopsia (no color)#4343430.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #642878

    #642878

    oklch(40% 0.139 316.7)

  • #245500

    #245500

    oklch(39.9% 0.12 136.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #642878

    #642878

    oklch(40% 0.139 316.7)

  • #45358D

    #45358D

    oklch(39.9% 0.14 286.6)

  • #781D56

    #781D56

    oklch(40% 0.138 346.8)

Open the analogous palette in the generator

Split complementary

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

  • #642878

    #642878

    oklch(40% 0.139 316.7)

  • #4D4A00

    #4D4A00

    oklch(39.9% 0.086 107)

  • #00553E

    #00553E

    oklch(39.9% 0.082 167.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #642878

    #642878

    oklch(40% 0.139 316.7)

  • #614000

    #614000

    oklch(39.9% 0.084 75.9)

  • #005354

    #005354

    oklch(40.1% 0.068 196.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #642878

    #642878

    oklch(40% 0.139 316.7)

  • #752F00

    #752F00

    oklch(39.8% 0.111 46.6)

  • #245500

    #245500

    oklch(39.9% 0.12 136.6)

  • #004F67

    #004F67

    oklch(39.9% 0.077 226.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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