#421579#421579

#421579 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 297.4°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#421579
RGBrgb(66, 21, 121)
HSLhsl(267, 70%, 28%)
HSVhsv(267, 83%, 47%)
CMYKcmyk(45.5%, 82.6%, 0%, 52.5%)
CIE-LABlab(20.34, 42.06, -47.84)
CIE-LCHlch(20.34, 63.70, 311.32°)
OKLaboklab(33.25% 0.0712 -0.137)
OKLCHoklch(33.25% 0.154 297.4)
XYZxyz(5.9652, 3.0749, 18.3647)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421579 #4C7915
analogous
#151A79 #421579 #741579
triadic
#421579 #794215 #157942
tetradic
#421579 #79151A #4C7915 #157974
square
#421579 #79151A #4C7915 #157974
split-complementary
#421579 #797415 #1A7915
monochromatic
#0E051A #260C45 #421579 #5E1EAD #7C2EDB

Accessibility & contrast

On white

13.00
#421579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#421579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421579
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421579#FFFFFF#000000##FFFFFF
##4215791.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#333147
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #421579;
/* rgb */ color: rgb(66, 21, 121);
/* oklch */ color: oklch(33.3% 0.154 297.4);
Tailwind
colors: {
  custom: {
    50: '#7d59a1',
    500: '#421579',
    950: '#000000',
  },
}
SCSS
$custom: #421579;
$custom-light: #7d59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#421579",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 267,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33253,
    "c": 0.15441,
    "h": 297.4
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#421579
secondary
#7BAF3B
accent
#ED3B9D
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421579

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

Preview Lab → · Contrast checker → · Palette generator →

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