#421F98#421F98

#421F98 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.180 H 287.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#421F98
RGBrgb(66, 31, 152)
HSLhsl(257, 66%, 36%)
HSVhsv(257, 80%, 60%)
CMYKcmyk(56.6%, 79.6%, 0%, 40.4%)
CIE-LABlab(24.97, 46.16, -59.66)
CIE-LCHlch(24.97, 75.43, 307.73°)
OKLaboklab(37.4% 0.0536 -0.1717)
OKLCHoklch(37.4% 0.18 287.3)
XYZxyz(8.4026, 4.4048, 30.1071)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F98 #75981F
analogous
#1F3998 #421F98 #7E1F98
triadic
#421F98 #98421F #1F9842
tetradic
#421F98 #981F39 #75981F #1F987E
square
#421F98 #981F39 #75981F #1F987E
split-complementary
#421F98 #987E1F #39981F
monochromatic
#160A32 #2C1565 #421F98 #5829CB #7C55DC

Accessibility & contrast

On white

11.16
#421F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#421F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F98
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F98#FFFFFF#000000##FFFFFF
##421F981.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#1B425B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #421f98;
/* rgb */ color: rgb(66, 31, 152);
/* oklch */ color: oklch(37.4% 0.180 287.3);
Tailwind
colors: {
  custom: {
    50: '#8160b7',
    500: '#421f98',
    950: '#000000',
  },
}
SCSS
$custom: #421f98;
$custom-light: #8160b7;
$custom-dark: #000000;
JSON
{
  "hex": "#421f98",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 257.355,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37404,
    "c": 0.1799,
    "h": 287.3
  },
  "luminance": 0.04405
}

Semantic roles & 50–950 ramp

primary
#421F98
secondary
#A0C053
accent
#E93FB8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421F98

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

Preview Lab → · Contrast checker → · Palette generator →

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