#422266#422266

#422266 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.3% C 0.115 H 302.1°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#422266
RGBrgb(66, 34, 102)
HSLhsl(268, 50%, 27%)
HSVhsv(268, 67%, 40%)
CMYKcmyk(35.3%, 66.7%, 0%, 60%)
CIE-LABlab(21.06, 30.26, -34.39)
CIE-LCHlch(21.06, 45.80, 311.35°)
OKLaboklab(33.26% 0.0613 -0.0976)
OKLCHoklch(33.26% 0.115 302.1)
XYZxyz(5.2165, 3.2616, 12.9225)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422266 #466622
analogous
#222466 #422266 #642266
triadic
#422266 #664222 #226642
tetradic
#422266 #662224 #466622 #226664
square
#422266 #662224 #466622 #226664
split-complementary
#422266 #666422 #246622
monochromatic
#0F0817 #241338 #422266 #603194 #7E42C0

Accessibility & contrast

On white

12.71
#422266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#422266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422266
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422266#FFFFFF#000000##FFFFFF
##4222661.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#0B3264
Tritanopia (blue-blind)
#3B3140
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #422266;
/* rgb */ color: rgb(66, 34, 102);
/* oklch */ color: oklch(33.3% 0.115 302.1);
Tailwind
colors: {
  custom: {
    50: '#795f92',
    500: '#422266',
    950: '#000000',
  },
}
SCSS
$custom: #422266;
$custom-light: #795f92;
$custom-dark: #000000;
JSON
{
  "hex": "#422266",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 102
  },
  "hsl": {
    "h": 268.235,
    "s": 50,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33257,
    "c": 0.11525,
    "h": 302.1
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#422266
secondary
#749A4A
accent
#DA4E98
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09050D
muted
#7B797E

Preview Lab

Preview with #422266

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

Preview Lab → · Contrast checker → · Palette generator →

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