#422187#422187

#422187 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.158 H 291.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#422187
RGBrgb(66, 33, 135)
HSLhsl(259, 61%, 33%)
HSVhsv(259, 76%, 53%)
CMYKcmyk(51.1%, 75.6%, 0%, 47.1%)
CIE-LABlab(23.65, 40.27, -51.27)
CIE-LCHlch(23.65, 65.20, 308.14°)
OKLaboklab(35.98% 0.0568 -0.1472)
OKLCHoklch(35.98% 0.158 291.1)
XYZxyz(7.1626, 3.9950, 23.3107)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422187 #668721
analogous
#213387 #422187 #752187
triadic
#422187 #874221 #218742
tetradic
#422187 #872133 #668721 #218775
square
#422187 #872133 #668721 #218775
split-complementary
#422187 #877521 #338721
monochromatic
#120925 #2A1556 #422187 #5A2DB8 #7A4FD4

Accessibility & contrast

On white

11.67
#422187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#422187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422187
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422187#FFFFFF#000000##FFFFFF
##4221871.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#2B3C52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #422187;
/* rgb */ color: rgb(66, 33, 135);
/* oklch */ color: oklch(36.0% 0.158 291.1);
Tailwind
colors: {
  custom: {
    50: '#7e60ab',
    500: '#422187',
    950: '#000000',
  },
}
SCSS
$custom: #422187;
$custom-light: #7e60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#422187",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 259.412,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.15777,
    "h": 291.1
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#422187
secondary
#95B74D
accent
#E444B0
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #422187

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

Preview Lab → · Contrast checker → · Palette generator →

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