#421987#421987

#421987 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.166 H 292.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#421987
RGBrgb(66, 25, 135)
HSLhsl(262, 69%, 31%)
HSVhsv(262, 81%, 53%)
CMYKcmyk(51.1%, 81.5%, 0%, 47.1%)
CIE-LABlab(22.31, 44.11, -53.48)
CIE-LCHlch(22.31, 69.32, 309.52°)
OKLaboklab(35.04% 0.0634 -0.1536)
OKLCHoklch(35.04% 0.166 292.4)
XYZxyz(6.9663, 3.6025, 23.2453)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421987 #5E8719
analogous
#192787 #421987 #791987
triadic
#421987 #874219 #198742
tetradic
#421987 #871927 #5E8719 #198779
square
#421987 #871927 #5E8719 #198779
split-complementary
#421987 #877919 #278719
monochromatic
#100620 #290F53 #421987 #5B23BB #793FDB

Accessibility & contrast

On white

12.21
#421987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#421987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421987
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421987#FFFFFF#000000##FFFFFF
##4219871.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#2B3950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421987;
/* rgb */ color: rgb(66, 25, 135);
/* oklch */ color: oklch(35.0% 0.166 292.4);
Tailwind
colors: {
  custom: {
    50: '#7f5cab',
    500: '#421987',
    950: '#000000',
  },
}
SCSS
$custom: #421987;
$custom-light: #7f5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#421987",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 262.364,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35041,
    "c": 0.16616,
    "h": 292.4
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#421987
secondary
#8DBA41
accent
#EC3CAA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #421987

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

Preview Lab → · Contrast checker → · Palette generator →

#421987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva