#42228F#42228F

#42228F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.166 H 288.9°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#42228F
RGBrgb(66, 34, 143)
HSLhsl(258, 62%, 35%)
HSVhsv(258, 76%, 56%)
CMYKcmyk(53.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(24.59, 42.08, -54.72)
CIE-LCHlch(24.59, 69.03, 307.56°)
OKLaboklab(36.87% 0.0539 -0.1573)
OKLCHoklch(36.87% 0.166 288.9)
XYZxyz(7.7753, 4.2851, 26.3987)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42228F #6F8F22
analogous
#22388F #42228F #79228F
triadic
#42228F #8F4222 #228F42
tetradic
#42228F #8F2238 #6F8F22 #228F79
square
#42228F #8F2238 #6F8F22 #228F79
split-complementary
#42228F #8F7922 #388F22
monochromatic
#140A2C #2B165E #42228F #592EC0 #7B55D7

Accessibility & contrast

On white

11.31
#42228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#42228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42228F
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42228F#FFFFFF#000000##FFFFFF
##42228F1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#244057
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42228f;
/* rgb */ color: rgb(66, 34, 143);
/* oklch */ color: oklch(36.9% 0.166 288.9);
Tailwind
colors: {
  custom: {
    50: '#7f61b1',
    500: '#42228f',
    950: '#000000',
  },
}
SCSS
$custom: #42228f;
$custom-light: #7f61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42228f",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 257.615,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36873,
    "c": 0.16628,
    "h": 288.9
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#42228F
secondary
#9CBA52
accent
#E543B5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42228F

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

Preview Lab → · Contrast checker → · Palette generator →

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