#421F97#421F97

#421F97 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.179 H 287.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#421F97
RGBrgb(66, 31, 151)
HSLhsl(258, 66%, 36%)
HSVhsv(258, 79%, 59%)
CMYKcmyk(56.3%, 79.5%, 0%, 40.8%)
CIE-LABlab(24.87, 45.87, -59.22)
CIE-LCHlch(24.87, 74.91, 307.76°)
OKLaboklab(37.3% 0.0539 -0.1704)
OKLCHoklch(37.3% 0.179 287.5)
XYZxyz(8.3210, 4.3721, 29.6776)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F97 #74971F
analogous
#1F3897 #421F97 #7E1F97
triadic
#421F97 #97421F #1F9742
tetradic
#421F97 #971F38 #74971F #1F977E
square
#421F97 #971F38 #74971F #1F977E
split-complementary
#421F97 #977E1F #38971F
monochromatic
#160A31 #2C1564 #421F97 #5829CA #7C54DC

Accessibility & contrast

On white

11.20
#421F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#421F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F97
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F97#FFFFFF#000000##FFFFFF
##421F971.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#1D425B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #421f97;
/* rgb */ color: rgb(66, 31, 151);
/* oklch */ color: oklch(37.3% 0.179 287.5);
Tailwind
colors: {
  custom: {
    50: '#8160b7',
    500: '#421f97',
    950: '#000000',
  },
}
SCSS
$custom: #421f97;
$custom-light: #8160b7;
$custom-dark: #000000;
JSON
{
  "hex": "#421f97",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 257.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37303,
    "c": 0.17874,
    "h": 287.5
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#421F97
secondary
#A0BF52
accent
#E93FB7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421F97

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

Preview Lab → · Contrast checker → · Palette generator →

#421F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva