#42228A#42228A

#42228A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.160 H 290.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#42228A
RGBrgb(66, 34, 138)
HSLhsl(258, 60%, 34%)
HSVhsv(258, 75%, 54%)
CMYKcmyk(52.2%, 75.4%, 0%, 45.9%)
CIE-LABlab(24.12, 40.62, -52.39)
CIE-LCHlch(24.12, 66.29, 307.79°)
OKLaboklab(36.39% 0.0552 -0.1505)
OKLCHoklch(36.39% 0.16 290.1)
XYZxyz(7.4049, 4.1370, 24.4482)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42228A #6A8A22
analogous
#22368A #42228A #76228A
triadic
#42228A #8A4222 #228A42
tetradic
#42228A #8A2236 #6A8A22 #228A76
square
#42228A #8A2236 #6A8A22 #228A76
split-complementary
#42228A #8A7622 #368A22
monochromatic
#130A28 #2B1659 #42228A #592EBB #7A52D4

Accessibility & contrast

On white

11.49
#42228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#42228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42228A
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42228A#FFFFFF#000000##FFFFFF
##42228A1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#293E54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42228a;
/* rgb */ color: rgb(66, 34, 138);
/* oklch */ color: oklch(36.4% 0.160 290.1);
Tailwind
colors: {
  custom: {
    50: '#7e60ad',
    500: '#42228a',
    950: '#000000',
  },
}
SCSS
$custom: #42228a;
$custom-light: #7e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42228a",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 258.462,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36395,
    "c": 0.16026,
    "h": 290.1
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#42228A
secondary
#98B850
accent
#E444B3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42228A

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

Preview Lab → · Contrast checker → · Palette generator →

#42228A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva