#42284A#42284A

#42284A is a dark, moderate purple. Relative luminance 0.032; OKLCH L 32.4% C 0.067 H 318.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#42284A
RGBrgb(66, 40, 74)
HSLhsl(286, 30%, 22%)
HSVhsv(286, 46%, 29%)
CMYKcmyk(10.8%, 45.9%, 0%, 71%)
CIE-LABlab(20.71, 19.10, -16.31)
CIE-LCHlch(20.71, 25.11, 319.51°)
OKLaboklab(32.42% 0.0498 -0.0449)
OKLCHoklch(32.42% 0.067 318)
XYZxyz(4.2414, 3.1704, 6.8658)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42284A #304A28
analogous
#31284A #42284A #4A2841
triadic
#42284A #4A4228 #284A42
tetradic
#42284A #4A3128 #304A28 #28414A
square
#42284A #4A3128 #304A28 #28414A
split-complementary
#42284A #414A28 #284A31
monochromatic
#120B14 #1F1322 #42284A #653D72 #895399

Accessibility & contrast

On white

12.85
#42284A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#42284A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42284A
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42284A#FFFFFF#000000##FFFFFF
##42284A1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23304B
Deuteranopia (green-blind)
#2A3349
Tritanopia (blue-blind)
#422C35
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42284a;
/* rgb */ color: rgb(66, 40, 74);
/* oklch */ color: oklch(32.4% 0.067 318.0);
Tailwind
colors: {
  custom: {
    50: '#77627c',
    500: '#42284a',
    950: '#000000',
  },
}
SCSS
$custom: #42284a;
$custom-light: #77627c;
$custom-dark: #000000;
JSON
{
  "hex": "#42284a",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 74
  },
  "hsl": {
    "h": 285.882,
    "s": 29.825,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32425,
    "c": 0.06708,
    "h": 318
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#42284A
secondary
#5C7C51
accent
#C66279
background
#F7F5F7
surface
#EDEAEE
border
#C8C6C9
text
#090509
muted
#7B797B

Preview Lab

Preview with #42284A

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

Preview Lab → · Contrast checker → · Palette generator →

#42284A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva