#421979#421979

#421979 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.150 H 296.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#421979
RGBrgb(66, 25, 121)
HSLhsl(266, 66%, 29%)
HSVhsv(266, 79%, 47%)
CMYKcmyk(45.5%, 79.3%, 0%, 52.5%)
CIE-LABlab(20.96, 40.28, -46.84)
CIE-LCHlch(20.96, 61.77, 310.70°)
OKLaboklab(33.68% 0.0678 -0.1341)
OKLCHoklch(33.68% 0.15 296.8)
XYZxyz(6.0447, 3.2339, 18.3912)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421979 #507919
analogous
#192079 #421979 #721979
triadic
#421979 #794219 #197942
tetradic
#421979 #791920 #507919 #197972
square
#421979 #791920 #507919 #197972
split-complementary
#421979 #797219 #207919
monochromatic
#0E0519 #260F46 #421979 #5E23AC #7B37D6

Accessibility & contrast

On white

12.75
#421979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#421979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421979
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421979#FFFFFF#000000##FFFFFF
##4219791.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#333348
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #421979;
/* rgb */ color: rgb(66, 25, 121);
/* oklch */ color: oklch(33.7% 0.150 296.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ba1',
    500: '#421979',
    950: '#000000',
  },
}
SCSS
$custom: #421979;
$custom-light: #7c5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#421979",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 265.625,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33683,
    "c": 0.15026,
    "h": 296.8
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#421979
secondary
#7FAE40
accent
#E93FA0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421979

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

Preview Lab → · Contrast checker → · Palette generator →

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