#422166#422166

#422166 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.1% C 0.117 H 302.4°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#422166
RGBrgb(66, 33, 102)
HSLhsl(269, 51%, 26%)
HSVhsv(269, 68%, 40%)
CMYKcmyk(35.3%, 67.6%, 0%, 60%)
CIE-LABlab(20.85, 30.84, -34.73)
CIE-LCHlch(20.85, 46.45, 311.61°)
OKLaboklab(33.1% 0.0626 -0.0986)
OKLCHoklch(33.1% 0.117 302.4)
XYZxyz(5.1883, 3.2053, 12.9131)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422166 #456621
analogous
#212366 #422166 #652166
triadic
#422166 #664221 #216642
tetradic
#422166 #662123 #456621 #216665
square
#422166 #662123 #456621 #216665
split-complementary
#422166 #666521 #236621
monochromatic
#0F0717 #241238 #422166 #603094 #7E40C1

Accessibility & contrast

On white

12.80
#422166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#422166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422166
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422166#FFFFFF#000000##FFFFFF
##4221661.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#093264
Tritanopia (blue-blind)
#3B3040
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #422166;
/* rgb */ color: rgb(66, 33, 102);
/* oklch */ color: oklch(33.1% 0.117 302.4);
Tailwind
colors: {
  custom: {
    50: '#7a5e92',
    500: '#422166',
    950: '#000000',
  },
}
SCSS
$custom: #422166;
$custom-light: #7a5e92;
$custom-dark: #000000;
JSON
{
  "hex": "#422166",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 268.696,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33102,
    "c": 0.11681,
    "h": 302.4
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#422166
secondary
#739A49
accent
#DB4D97
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #422166

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

Preview Lab → · Contrast checker → · Palette generator →

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