#422197#422197

#422197 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.177 H 287.2°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#422197
RGBrgb(66, 33, 151)
HSLhsl(257, 64%, 36%)
HSVhsv(257, 78%, 59%)
CMYKcmyk(56.3%, 78.1%, 0%, 40.8%)
CIE-LABlab(25.20, 44.91, -58.67)
CIE-LCHlch(25.20, 73.89, 307.44°)
OKLaboklab(37.54% 0.0524 -0.1688)
OKLCHoklch(37.54% 0.177 287.2)
XYZxyz(8.3749, 4.4799, 29.6956)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422197 #769721
analogous
#213B97 #422197 #7D2197
triadic
#422197 #974221 #219742
tetradic
#422197 #97213B #769721 #21977D
square
#422197 #97213B #769721 #21977D
split-complementary
#422197 #977D21 #3B9721
monochromatic
#160B33 #2C1665 #422197 #582CC9 #7C58DA

Accessibility & contrast

On white

11.08
#422197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #422197
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422197#FFFFFF#000000##FFFFFF
##4221971.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#1C435B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #422197;
/* rgb */ color: rgb(66, 33, 151);
/* oklch */ color: oklch(37.5% 0.177 287.2);
Tailwind
colors: {
  custom: {
    50: '#8161b7',
    500: '#422197',
    950: '#000000',
  },
}
SCSS
$custom: #422197;
$custom-light: #8161b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422197",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 256.78,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37535,
    "c": 0.1768,
    "h": 287.2
  },
  "luminance": 0.0448
}

Semantic roles & 50–950 ramp

primary
#422197
secondary
#A1BE55
accent
#E741B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #422197

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

Preview Lab → · Contrast checker → · Palette generator →

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