#422174#422174

#422174 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.134 H 296.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#422174
RGBrgb(66, 33, 116)
HSLhsl(264, 56%, 29%)
HSVhsv(264, 72%, 45%)
CMYKcmyk(43.1%, 71.6%, 0%, 54.5%)
CIE-LABlab(21.97, 34.79, -41.98)
CIE-LCHlch(21.97, 54.52, 309.64°)
OKLaboklab(34.26% 0.0608 -0.1199)
OKLCHoklch(34.26% 0.134 296.9)
XYZxyz(5.9422, 3.5068, 16.8834)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422174 #537421
analogous
#212A74 #422174 #6C2174
triadic
#422174 #744221 #217442
tetradic
#422174 #74212A #537421 #21746C
square
#422174 #74212A #537421 #21746C
split-complementary
#422174 #746C21 #2A7421
monochromatic
#0E0718 #271344 #422174 #5D2FA4 #7A45CA

Accessibility & contrast

On white

12.34
#422174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#422174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422174
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422174#FFFFFF#000000##FFFFFF
##4221741.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#353547
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #422174;
/* rgb */ color: rgb(66, 33, 116);
/* oklch */ color: oklch(34.3% 0.134 296.9);
Tailwind
colors: {
  custom: {
    50: '#7b5f9d',
    500: '#422174',
    950: '#000000',
  },
}
SCSS
$custom: #422174;
$custom-light: #7b5f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#422174",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 263.855,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.13446,
    "h": 296.9
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#422174
secondary
#82A749
accent
#DF49A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #422174

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

Preview Lab → · Contrast checker → · Palette generator →

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