#42228C#42228C

#42228C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.163 H 289.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#42228C
RGBrgb(66, 34, 140)
HSLhsl(258, 61%, 34%)
HSVhsv(258, 76%, 55%)
CMYKcmyk(52.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(24.31, 41.21, -53.33)
CIE-LCHlch(24.31, 67.39, 307.69°)
OKLaboklab(36.59% 0.0547 -0.1532)
OKLCHoklch(36.59% 0.163 289.6)
XYZxyz(7.5510, 4.1954, 25.2178)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42228C #6C8C22
analogous
#22378C #42228C #77228C
triadic
#42228C #8C4222 #228C42
tetradic
#42228C #8C2237 #6C8C22 #228C77
square
#42228C #8C2237 #6C8C22 #228C77
split-complementary
#42228C #8C7722 #378C22
monochromatic
#140A2A #2B165B #42228C #592EBD #7A53D5

Accessibility & contrast

On white

11.42
#42228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#42228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42228C
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42228C#FFFFFF#000000##FFFFFF
##42228C1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#273F55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42228c;
/* rgb */ color: rgb(66, 34, 140);
/* oklch */ color: oklch(36.6% 0.163 289.6);
Tailwind
colors: {
  custom: {
    50: '#7f61af',
    500: '#42228c',
    950: '#000000',
  },
}
SCSS
$custom: #42228c;
$custom-light: #7f61af;
$custom-dark: #000000;
JSON
{
  "hex": "#42228c",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 258.113,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36585,
    "c": 0.16267,
    "h": 289.6
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42228C

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

Preview Lab → · Contrast checker → · Palette generator →

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