#422170#422170

#422170 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.129 H 298.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#422170
RGBrgb(66, 33, 112)
HSLhsl(265, 54%, 28%)
HSVhsv(265, 71%, 44%)
CMYKcmyk(41.1%, 70.5%, 0%, 56.1%)
CIE-LABlab(21.64, 33.65, -39.95)
CIE-LCHlch(21.64, 52.23, 310.11°)
OKLaboklab(33.92% 0.0615 -0.1139)
OKLCHoklch(33.92% 0.129 298.4)
XYZxyz(5.7145, 3.4157, 15.6843)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422170 #4F7021
analogous
#212770 #422170 #692170
triadic
#422170 #704221 #217042
tetradic
#422170 #702127 #4F7021 #217069
square
#422170 #702127 #4F7021 #217069
split-complementary
#422170 #706921 #277021
monochromatic
#0E0718 #261341 #422170 #5E2F9F #7B44C8

Accessibility & contrast

On white

12.48
#422170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#422170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422170
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422170#FFFFFF#000000##FFFFFF
##4221701.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#373445
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #422170;
/* rgb */ color: rgb(66, 33, 112);
/* oklch */ color: oklch(33.9% 0.129 298.4);
Tailwind
colors: {
  custom: {
    50: '#7b5f9a',
    500: '#422170',
    950: '#000000',
  },
}
SCSS
$custom: #422170;
$custom-light: #7b5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#422170",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 265.063,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3392,
    "c": 0.12946,
    "h": 298.4
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#422170
secondary
#7EA449
accent
#DE4AA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #422170

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

Preview Lab → · Contrast checker → · Palette generator →

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