#422164#422164

#422164 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.9% C 0.114 H 303.3°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#422164
RGBrgb(66, 33, 100)
HSLhsl(270, 50%, 26%)
HSVhsv(270, 67%, 39%)
CMYKcmyk(34%, 67%, 0%, 60.8%)
CIE-LABlab(20.70, 30.29, -33.66)
CIE-LCHlch(20.70, 45.29, 311.98°)
OKLaboklab(32.95% 0.0628 -0.0954)
OKLCHoklch(32.95% 0.114 303.3)
XYZxyz(5.0903, 3.1661, 12.3971)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422164 #436421
analogous
#212164 #422164 #632164
triadic
#422164 #644221 #216442
tetradic
#422164 #642121 #436421 #216463
square
#422164 #642121 #436421 #216463
split-complementary
#422164 #646321 #216421
monochromatic
#0F0817 #241236 #422164 #603092 #7F40C0

Accessibility & contrast

On white

12.86
#422164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #422164
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422164#FFFFFF#000000##FFFFFF
##4221641.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#0D3263
Tritanopia (blue-blind)
#3B2F3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #422164;
/* rgb */ color: rgb(66, 33, 100);
/* oklch */ color: oklch(32.9% 0.114 303.3);
Tailwind
colors: {
  custom: {
    50: '#795e91',
    500: '#422164',
    950: '#000000',
  },
}
SCSS
$custom: #422164;
$custom-light: #795e91;
$custom-dark: #000000;
JSON
{
  "hex": "#422164",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 100
  },
  "hsl": {
    "h": 269.552,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32945,
    "c": 0.11425,
    "h": 303.3
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#422164
secondary
#719849
accent
#DA4E95
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040D
muted
#7B797D

Preview Lab

Preview with #422164

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

Preview Lab → · Contrast checker → · Palette generator →

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