#422162#422162

#422162 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.8% C 0.112 H 304.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#422162
RGBrgb(66, 33, 98)
HSLhsl(270, 50%, 26%)
HSVhsv(270, 66%, 38%)
CMYKcmyk(32.7%, 66.3%, 0%, 61.6%)
CIE-LABlab(20.55, 29.74, -32.59)
CIE-LCHlch(20.55, 44.12, 312.39°)
OKLaboklab(32.79% 0.0629 -0.0923)
OKLCHoklch(32.79% 0.112 304.3)
XYZxyz(4.9947, 3.1278, 11.8935)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422162 #416221
analogous
#222162 #422162 #622161
triadic
#422162 #624221 #216242
tetradic
#422162 #622221 #416221 #216162
square
#422162 #622221 #416221 #216162
split-complementary
#422162 #616221 #216222
monochromatic
#0F0817 #231234 #422162 #613090 #8040BE

Accessibility & contrast

On white

12.92
#422162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#422162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422162
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422162#FFFFFF#000000##FFFFFF
##4221621.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#103161
Tritanopia (blue-blind)
#3C2F3E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #422162;
/* rgb */ color: rgb(66, 33, 98);
/* oklch */ color: oklch(32.8% 0.112 304.3);
Tailwind
colors: {
  custom: {
    50: '#795e8f',
    500: '#422162',
    950: '#000000',
  },
}
SCSS
$custom: #422162;
$custom-light: #795e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#422162",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 270.462,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3279,
    "c": 0.1117,
    "h": 304.3
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#422162
secondary
#6F9649
accent
#D94F93
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #422162

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

Preview Lab → · Contrast checker → · Palette generator →

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