#422172#422172

#422172 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.132 H 297.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#422172
RGBrgb(66, 33, 114)
HSLhsl(264, 55%, 29%)
HSVhsv(264, 71%, 45%)
CMYKcmyk(42.1%, 71.1%, 0%, 55.3%)
CIE-LABlab(21.80, 34.21, -40.97)
CIE-LCHlch(21.80, 53.38, 309.87°)
OKLaboklab(34.09% 0.0612 -0.1169)
OKLCHoklch(34.09% 0.132 297.6)
XYZxyz(5.8271, 3.4608, 16.2773)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422172 #517221
analogous
#212972 #422172 #6B2172
triadic
#422172 #724221 #217242
tetradic
#422172 #722129 #517221 #21726B
square
#422172 #722129 #517221 #21726B
split-complementary
#422172 #726B21 #297221
monochromatic
#0E0718 #271343 #422172 #5D2FA1 #7A44C9

Accessibility & contrast

On white

12.41
#422172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#422172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422172
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422172#FFFFFF#000000##FFFFFF
##4221721.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#363446
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #422172;
/* rgb */ color: rgb(66, 33, 114);
/* oklch */ color: oklch(34.1% 0.132 297.6);
Tailwind
colors: {
  custom: {
    50: '#7b5f9b',
    500: '#422172',
    950: '#000000',
  },
}
SCSS
$custom: #422172;
$custom-light: #7b5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#422172",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 264.444,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3409,
    "c": 0.13196,
    "h": 297.6
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#422172
secondary
#80A549
accent
#DE49A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #422172

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

Preview Lab → · Contrast checker → · Palette generator →

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