#421F72#421F72

#421F72 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.135 H 298.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#421F72
RGBrgb(66, 31, 114)
HSLhsl(265, 57%, 28%)
HSVhsv(265, 73%, 45%)
CMYKcmyk(42.1%, 72.8%, 0%, 55.3%)
CIE-LABlab(21.41, 35.31, -41.61)
CIE-LCHlch(21.41, 54.58, 310.32°)
OKLaboklab(33.81% 0.0634 -0.1188)
OKLCHoklch(33.81% 0.135 298.1)
XYZxyz(5.7732, 3.3530, 16.2594)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F72 #4F721F
analogous
#1F2672 #421F72 #6B1F72
triadic
#421F72 #72421F #1F7242
tetradic
#421F72 #721F26 #4F721F #1F726B
square
#421F72 #721F26 #4F721F #1F726B
split-complementary
#421F72 #726B1F #26721F
monochromatic
#0E0718 #261242 #421F72 #5E2CA2 #7B40CB

Accessibility & contrast

On white

12.57
#421F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#421F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F72
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F72#FFFFFF#000000##FFFFFF
##421F721.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#363346
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421f72;
/* rgb */ color: rgb(66, 31, 114);
/* oklch */ color: oklch(33.8% 0.135 298.1);
Tailwind
colors: {
  custom: {
    50: '#7b5e9b',
    500: '#421f72',
    950: '#000000',
  },
}
SCSS
$custom: #421f72;
$custom-light: #7b5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#421f72",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 265.301,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33806,
    "c": 0.13469,
    "h": 298.1
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

primary
#421F72
secondary
#7EA647
accent
#E047A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421F72

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

Preview Lab → · Contrast checker → · Palette generator →

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