#421162#421162

#421162 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.134 H 307.6°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#421162
RGBrgb(66, 17, 98)
HSLhsl(276, 70%, 23%)
HSVhsv(276, 83%, 38%)
CMYKcmyk(32.7%, 82.7%, 0%, 61.6%)
CIE-LABlab(17.65, 37.84, -37.28)
CIE-LCHlch(17.65, 53.12, 315.43°)
OKLaboklab(30.72% 0.0815 -0.106)
OKLCHoklch(30.72% 0.134 307.6)
XYZxyz(4.6514, 2.4411, 11.7790)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421162 #316211
analogous
#191162 #421162 #62115A
triadic
#421162 #624211 #116242
tetradic
#421162 #621911 #316211 #115A62
square
#421162 #621911 #316211 #115A62
split-complementary
#421162 #5A6211 #116219
monochromatic
#12051A #1F082E #421162 #651A96 #8823CA

Accessibility & contrast

On white

14.11
#421162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#421162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421162
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421162#FFFFFF#000000##FFFFFF
##4211621.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002C60
Tritanopia (blue-blind)
#3D2639
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #421162;
/* rgb */ color: rgb(66, 17, 98);
/* oklch */ color: oklch(30.7% 0.134 307.6);
Tailwind
colors: {
  custom: {
    50: '#7a568f',
    500: '#421162',
    950: '#000000',
  },
}
SCSS
$custom: #421162;
$custom-light: #7a568f;
$custom-dark: #000000;
JSON
{
  "hex": "#421162",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 276.296,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30721,
    "c": 0.1337,
    "h": 307.6
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#421162
secondary
#5D9A34
accent
#ED3B81
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #421162

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

Preview Lab → · Contrast checker → · Palette generator →

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