#42207B#42207B

#42207B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.144 H 294.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#42207B
RGBrgb(66, 32, 123)
HSLhsl(262, 59%, 30%)
HSVhsv(262, 74%, 48%)
CMYKcmyk(46.3%, 74%, 0%, 51.8%)
CIE-LABlab(22.38, 37.33, -45.79)
CIE-LCHlch(22.38, 59.08, 309.19°)
OKLaboklab(34.74% 0.0606 -0.1311)
OKLCHoklch(34.74% 0.144 294.8)
XYZxyz(6.3375, 3.6212, 19.1001)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42207B #597B20
analogous
#202B7B #42207B #70207B
triadic
#42207B #7B4220 #207B42
tetradic
#42207B #7B202B #597B20 #207B70
square
#42207B #7B202B #597B20 #207B70
split-complementary
#42207B #7B7020 #2B7B20
monochromatic
#0E071A #28134A #42207B #5C2DAC #7946CF

Accessibility & contrast

On white

12.18
#42207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#42207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42207B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42207B#FFFFFF#000000##FFFFFF
##42207B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#32374B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42207b;
/* rgb */ color: rgb(66, 32, 123);
/* oklch */ color: oklch(34.7% 0.144 294.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fa2',
    500: '#42207b',
    950: '#000000',
  },
}
SCSS
$custom: #42207b;
$custom-light: #7c5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#42207b",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 262.418,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3474,
    "c": 0.1444,
    "h": 294.8
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#42207B
secondary
#88AE49
accent
#E246A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42207B

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

Preview Lab → · Contrast checker → · Palette generator →

#42207B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva