#42184F#42184F

#42184F is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.0% C 0.103 H 317.3°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#42184F
RGBrgb(66, 24, 79)
HSLhsl(286, 53%, 20%)
HSVhsv(286, 70%, 31%)
CMYKcmyk(16.5%, 69.6%, 0%, 69%)
CIE-LABlab(17.35, 29.95, -25.01)
CIE-LCHlch(17.35, 39.02, 320.13°)
OKLaboklab(30.04% 0.076 -0.07)
OKLCHoklch(30.04% 0.103 317.3)
XYZxyz(3.9845, 2.3762, 7.6444)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42184F #254F18
analogous
#26184F #42184F #4F1840
triadic
#42184F #4F4218 #184F42
tetradic
#42184F #4F2618 #254F18 #18404F
square
#42184F #4F2618 #254F18 #18404F
split-complementary
#42184F #404F18 #184F26
monochromatic
#140717 #1B0A20 #42184F #69267E #9035AD

Accessibility & contrast

On white

14.24
#42184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#42184F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42184F
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42184F#FFFFFF#000000##FFFFFF
##42184F1.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062851
Deuteranopia (green-blind)
#1A2C4E
Tritanopia (blue-blind)
#422231
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42184f;
/* rgb */ color: rgb(66, 24, 79);
/* oklch */ color: oklch(30.0% 0.103 317.3);
Tailwind
colors: {
  custom: {
    50: '#785881',
    500: '#42184f',
    950: '#000000',
  },
}
SCSS
$custom: #42184f;
$custom-light: #785881;
$custom-dark: #000000;
JSON
{
  "hex": "#42184f",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 285.818,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.3004,
    "c": 0.10334,
    "h": 317.3
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#42184F
secondary
#4E863D
accent
#DD4B6D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42184F

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

Preview Lab → · Contrast checker → · Palette generator →

#42184F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva