#422198#422198

#422198 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.178 H 287.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#422198
RGBrgb(66, 33, 152)
HSLhsl(257, 64%, 36%)
HSVhsv(257, 78%, 60%)
CMYKcmyk(56.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(25.30, 45.20, -59.12)
CIE-LCHlch(25.30, 74.42, 307.40°)
OKLaboklab(37.64% 0.0521 -0.1702)
OKLCHoklch(37.64% 0.178 287)
XYZxyz(8.4564, 4.5125, 30.1251)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422198 #779821
analogous
#213C98 #422198 #7E2198
triadic
#422198 #984221 #219842
tetradic
#422198 #98213C #779821 #21987E
square
#422198 #98213C #779821 #21987E
split-complementary
#422198 #987E21 #3C9821
monochromatic
#160B33 #2C1666 #422198 #582CCA #7D59DB

Accessibility & contrast

On white

11.04
#422198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#422198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422198
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422198#FFFFFF#000000##FFFFFF
##4221981.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#1B435C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #422198;
/* rgb */ color: rgb(66, 33, 152);
/* oklch */ color: oklch(37.6% 0.178 287.0);
Tailwind
colors: {
  custom: {
    50: '#8161b7',
    500: '#422198',
    950: '#000000',
  },
}
SCSS
$custom: #422198;
$custom-light: #8161b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422198",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 256.639,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37635,
    "c": 0.17797,
    "h": 287
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#422198
secondary
#A2BF56
accent
#E740B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #422198

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

Preview Lab → · Contrast checker → · Palette generator →

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