#42208C#42208C

#42208C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.165 H 290.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#42208C
RGBrgb(66, 32, 140)
HSLhsl(259, 63%, 34%)
HSVhsv(259, 77%, 55%)
CMYKcmyk(52.9%, 77.1%, 0%, 45.1%)
CIE-LABlab(23.95, 42.22, -53.92)
CIE-LCHlch(23.95, 68.48, 308.07°)
OKLaboklab(36.33% 0.0563 -0.1549)
OKLCHoklch(36.33% 0.165 290)
XYZxyz(7.4955, 4.0844, 25.1993)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42208C #6A8C20
analogous
#20348C #42208C #78208C
triadic
#42208C #8C4220 #208C42
tetradic
#42208C #8C2034 #6A8C20 #208C78
square
#42208C #8C2034 #6A8C20 #208C78
split-complementary
#42208C #8C7820 #348C20
monochromatic
#130928 #2B155A #42208C #592BBE #7A50D7

Accessibility & contrast

On white

11.56
#42208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#42208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42208C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42208C#FFFFFF#000000##FFFFFF
##42208C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42208c;
/* rgb */ color: rgb(66, 32, 140);
/* oklch */ color: oklch(36.3% 0.165 290.0);
Tailwind
colors: {
  custom: {
    50: '#7f5faf',
    500: '#42208c',
    950: '#000000',
  },
}
SCSS
$custom: #42208c;
$custom-light: #7f5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#42208c",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 258.889,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36333,
    "c": 0.16486,
    "h": 290
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#42208C
secondary
#98BA4E
accent
#E642B2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42208C

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

Preview Lab → · Contrast checker → · Palette generator →

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