#42228B#42228B

#42228B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.161 H 289.9°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#42228B
RGBrgb(66, 34, 139)
HSLhsl(258, 61%, 34%)
HSVhsv(258, 76%, 55%)
CMYKcmyk(52.5%, 75.5%, 0%, 45.5%)
CIE-LABlab(24.21, 40.91, -52.86)
CIE-LCHlch(24.21, 66.84, 307.74°)
OKLaboklab(36.49% 0.0549 -0.1519)
OKLCHoklch(36.49% 0.161 289.9)
XYZxyz(7.4776, 4.1661, 24.8312)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42228B #6B8B22
analogous
#22378B #42228B #77228B
triadic
#42228B #8B4222 #228B42
tetradic
#42228B #8B2237 #6B8B22 #228B77
square
#42228B #8B2237 #6B8B22 #228B77
split-complementary
#42228B #8B7722 #378B22
monochromatic
#130A29 #2B165A #42228B #592EBC #7A53D5

Accessibility & contrast

On white

11.46
#42228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42228B
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42228B#FFFFFF#000000##FFFFFF
##42228B1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#283E55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42228b;
/* rgb */ color: rgb(66, 34, 139);
/* oklch */ color: oklch(36.5% 0.161 289.9);
Tailwind
colors: {
  custom: {
    50: '#7e61ae',
    500: '#42228b',
    950: '#000000',
  },
}
SCSS
$custom: #42228b;
$custom-light: #7e61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42228b",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 258.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3649,
    "c": 0.16147,
    "h": 289.9
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42228B

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

Preview Lab → · Contrast checker → · Palette generator →

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