#642A7B

Closest named color: Rebecca Purple (#663399). oklch(40.4% 0.139 315), rgb(100, 42, 123).

Aa

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

About this color

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

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

Values

HEX#642A7B
RGBrgb(100, 42, 123)
HSLhsl(283, 49%, 32%)
OKLCHoklch(40.4% 0.139 315)

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 #642A7B 9.72:1 AAA Lc -96.2 Preferred for body text
Black text on #642A7B 2.15:1 Fails Lc 12.0 Not readable
#642A7B text on white 9.72:1 AAA Lc 92.0 Preferred for body text
#642A7B text on black 2.15:1 Fails Lc -10.4 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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #F0E5F5

    oklch(93.5% 0.024 315.5)

  3. Step 200

    200

    #E5D1EE

    oklch(88.6% 0.045 315.5)

  4. Step 300

    300

    #D5B1E5

    oklch(80.9% 0.082 315.4)

  5. Step 400

    400

    #BF86D8

    oklch(70.6% 0.131 315.1)

  6. Step 500

    500

    #AE65CD

    oklch(63% 0.166 315)

  7. Step 600

    600

    #9A49BA

    oklch(55.6% 0.181 315.2)

  8. Step 700

    700

    #833AA0

    oklch(49.1% 0.167 315)

  9. Step 800

    800 (this color)

    #642A7B

    oklch(40.4% 0.139 315)

  10. Step 900

    900

    #572C68

    oklch(37.7% 0.108 315.5)

  11. Step 950

    950

    #331B3D

    oklch(27.1% 0.068 315.2)

Export this scale for Tailwind in the Tailwind colors tool

#642A7B 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)#0B417D0.131
Deuteranopia (no green cones)#2846790.114
Tritanopia (no blue cones)#62394E0.092
Achromatopsia (no color)#4444440.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #642A7B

    #642A7B

    oklch(40.4% 0.139 315)

  • #295600

    #295600

    oklch(40.5% 0.119 135.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #642A7B

    #642A7B

    oklch(40.4% 0.139 315)

  • #44378F

    #44378F

    oklch(40.3% 0.14 285)

  • #791F5A

    #791F5A

    oklch(40.5% 0.139 344.9)

Open the analogous palette in the generator

Split complementary

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

  • #642A7B

    #642A7B

    oklch(40.4% 0.139 315)

  • #504B00

    #504B00

    oklch(40.5% 0.086 105.2)

  • #00573D

    #00573D

    oklch(40.5% 0.085 164.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #642A7B

    #642A7B

    oklch(40.4% 0.139 315)

  • #634100

    #634100

    oklch(40.4% 0.085 75.4)

  • #005454

    #005454

    oklch(40.4% 0.069 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #642A7B

    #642A7B

    oklch(40.4% 0.139 315)

  • #792F00

    #792F00

    oklch(40.5% 0.115 45.3)

  • #295600

    #295600

    oklch(40.5% 0.119 135.2)

  • #005168

    #005168

    oklch(40.5% 0.077 225.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #642A7B 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.