#42234D#42234D

#42234D is a dark, moderate purple. Relative luminance 0.029; OKLCH L 31.7% C 0.081 H 316.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#42234D
RGBrgb(66, 35, 77)
HSLhsl(284, 38%, 22%)
HSVhsv(284, 55%, 30%)
CMYKcmyk(14.3%, 54.5%, 0%, 69.8%)
CIE-LABlab(19.62, 23.04, -20.04)
CIE-LCHlch(19.62, 30.54, 318.98°)
OKLaboklab(31.67% 0.059 -0.0557)
OKLCHoklch(31.67% 0.081 316.6)
XYZxyz(4.1872, 2.8963, 7.3582)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42234D #2E4D23
analogous
#2D234D #42234D #4D2343
triadic
#42234D #4D4223 #234D42
tetradic
#42234D #4D2D23 #2E4D23 #23434D
square
#42234D #4D2D23 #2E4D23 #23434D
split-complementary
#42234D #434D23 #234D2D
monochromatic
#120A15 #1E1023 #42234D #663677 #8A49A1

Accessibility & contrast

On white

13.30
#42234D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#42234D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42234D
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42234D#FFFFFF#000000##FFFFFF
##42234D1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4E
Deuteranopia (green-blind)
#24304C
Tritanopia (blue-blind)
#422934
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42234d;
/* rgb */ color: rgb(66, 35, 77);
/* oklch */ color: oklch(31.7% 0.081 316.6);
Tailwind
colors: {
  custom: {
    50: '#775f7f',
    500: '#42234d',
    950: '#000000',
  },
}
SCSS
$custom: #42234d;
$custom-light: #775f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#42234d",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 77
  },
  "hsl": {
    "h": 284.286,
    "s": 37.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31666,
    "c": 0.08107,
    "h": 316.6
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#42234D
secondary
#59814B
accent
#CD5A78
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #42234D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#42234D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva