#42218C#42218C

#42218C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.164 H 289.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#42218C
RGBrgb(66, 33, 140)
HSLhsl(259, 62%, 34%)
HSVhsv(259, 76%, 55%)
CMYKcmyk(52.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(24.13, 41.72, -53.62)
CIE-LCHlch(24.13, 67.94, 307.88°)
OKLaboklab(36.46% 0.0555 -0.1541)
OKLCHoklch(36.46% 0.164 289.8)
XYZxyz(7.5229, 4.1391, 25.2084)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42218C #6B8C21
analogous
#21358C #42218C #78218C
triadic
#42218C #8C4221 #218C42
tetradic
#42218C #8C2135 #6B8C21 #218C78
square
#42218C #8C2135 #6B8C21 #218C78
split-complementary
#42218C #8C7821 #358C21
monochromatic
#130A29 #2B155A #42218C #592DBE #7A51D6

Accessibility & contrast

On white

11.49
#42218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#42218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42218C
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42218C#FFFFFF#000000##FFFFFF
##42218C1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#273E55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42218c;
/* rgb */ color: rgb(66, 33, 140);
/* oklch */ color: oklch(36.5% 0.164 289.8);
Tailwind
colors: {
  custom: {
    50: '#7f60af',
    500: '#42218c',
    950: '#000000',
  },
}
SCSS
$custom: #42218c;
$custom-light: #7f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#42218c",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 258.505,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36457,
    "c": 0.16377,
    "h": 289.8
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#42218C
secondary
#99B94F
accent
#E543B3
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42218C

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

Preview Lab → · Contrast checker → · Palette generator →

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