#42228E#42228E

#42228E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.165 H 289.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#42228E
RGBrgb(66, 34, 142)
HSLhsl(258, 61%, 35%)
HSVhsv(258, 76%, 56%)
CMYKcmyk(53.5%, 76.1%, 0%, 44.3%)
CIE-LABlab(24.50, 41.79, -54.26)
CIE-LCHlch(24.50, 68.49, 307.60°)
OKLaboklab(36.78% 0.0541 -0.1559)
OKLCHoklch(36.78% 0.165 289.1)
XYZxyz(7.6999, 4.2549, 26.0015)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42228E #6E8E22
analogous
#22388E #42228E #78228E
triadic
#42228E #8E4222 #228E42
tetradic
#42228E #8E2238 #6E8E22 #228E78
square
#42228E #8E2238 #6E8E22 #228E78
split-complementary
#42228E #8E7822 #388E22
monochromatic
#140A2B #2B165D #42228E #592EBF #7B54D6

Accessibility & contrast

On white

11.35
#42228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42228E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42228E#FFFFFF#000000##FFFFFF
##42228E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#254056
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42228e;
/* rgb */ color: rgb(66, 34, 142);
/* oklch */ color: oklch(36.8% 0.165 289.1);
Tailwind
colors: {
  custom: {
    50: '#7f61b0',
    500: '#42228e',
    950: '#000000',
  },
}
SCSS
$custom: #42228e;
$custom-light: #7f61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42228e",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 257.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36777,
    "c": 0.16508,
    "h": 289.1
  },
  "luminance": 0.04255
}

Semantic roles & 50–950 ramp

primary
#42228E
secondary
#9BBA52
accent
#E443B5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42228E

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

Preview Lab → · Contrast checker → · Palette generator →

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