#42228D#42228D

#42228D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.164 H 289.4°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#42228D
RGBrgb(66, 34, 141)
HSLhsl(258, 61%, 34%)
HSVhsv(258, 76%, 55%)
CMYKcmyk(53.2%, 75.9%, 0%, 44.7%)
CIE-LABlab(24.40, 41.50, -53.79)
CIE-LCHlch(24.40, 67.94, 307.65°)
OKLaboklab(36.68% 0.0544 -0.1546)
OKLCHoklch(36.68% 0.164 289.4)
XYZxyz(7.6251, 4.2250, 25.6079)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42228D #6D8D22
analogous
#22388D #42228D #78228D
triadic
#42228D #8D4222 #228D42
tetradic
#42228D #8D2238 #6D8D22 #228D78
square
#42228D #8D2238 #6D8D22 #228D78
split-complementary
#42228D #8D7822 #388D22
monochromatic
#140A2A #2B165C #42228D #592EBE #7B54D6

Accessibility & contrast

On white

11.38
#42228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#42228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42228D
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42228D#FFFFFF#000000##FFFFFF
##42228D1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#263F56
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42228d;
/* rgb */ color: rgb(66, 34, 141);
/* oklch */ color: oklch(36.7% 0.164 289.4);
Tailwind
colors: {
  custom: {
    50: '#7f61af',
    500: '#42228d',
    950: '#000000',
  },
}
SCSS
$custom: #42228d;
$custom-light: #7f61af;
$custom-dark: #000000;
JSON
{
  "hex": "#42228d",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 257.944,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36681,
    "c": 0.16388,
    "h": 289.4
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#42228D
secondary
#9AB951
accent
#E444B4
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42228D

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

Preview Lab → · Contrast checker → · Palette generator →

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