#422178#422178

#422178 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.139 H 295.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#422178
RGBrgb(66, 33, 120)
HSLhsl(263, 57%, 30%)
HSVhsv(263, 73%, 47%)
CMYKcmyk(45%, 72.5%, 0%, 52.9%)
CIE-LABlab(22.31, 35.93, -43.99)
CIE-LCHlch(22.31, 56.80, 309.24°)
OKLaboklab(34.61% 0.0601 -0.1258)
OKLCHoklch(34.61% 0.139 295.5)
XYZxyz(6.1799, 3.6019, 18.1353)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422178 #577821
analogous
#212B78 #422178 #6E2178
triadic
#422178 #784221 #217842
tetradic
#422178 #78212B #577821 #21786E
square
#422178 #78212B #577821 #21786E
split-complementary
#422178 #786E21 #2B7821
monochromatic
#0D0718 #281448 #422178 #5C2EA8 #7A47CC

Accessibility & contrast

On white

12.21
#422178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#422178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422178
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422178#FFFFFF#000000##FFFFFF
##4221781.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#33374A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #422178;
/* rgb */ color: rgb(66, 33, 120);
/* oklch */ color: oklch(34.6% 0.139 295.5);
Tailwind
colors: {
  custom: {
    50: '#7c5fa0',
    500: '#422178',
    950: '#000000',
  },
}
SCSS
$custom: #422178;
$custom-light: #7c5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#422178",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 262.759,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.3461,
    "c": 0.13944,
    "h": 295.5
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#422178
secondary
#86AB4A
accent
#E048A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #422178

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

Preview Lab → · Contrast checker → · Palette generator →

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