#42207A#42207A

#42207A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.143 H 295.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#42207A
RGBrgb(66, 32, 122)
HSLhsl(263, 58%, 30%)
HSVhsv(263, 74%, 48%)
CMYKcmyk(45.9%, 73.8%, 0%, 52.2%)
CIE-LABlab(22.29, 37.04, -45.30)
CIE-LCHlch(22.29, 58.52, 309.28°)
OKLaboklab(34.65% 0.0608 -0.1296)
OKLCHoklch(34.65% 0.143 295.1)
XYZxyz(6.2752, 3.5963, 18.7721)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42207A #587A20
analogous
#202B7A #42207A #6F207A
triadic
#42207A #7A4220 #207A42
tetradic
#42207A #7A202B #587A20 #207A6F
square
#42207A #7A202B #587A20 #207A6F
split-complementary
#42207A #7A6F20 #2B7A20
monochromatic
#0E0719 #28134A #42207A #5C2DAA #7A46CE

Accessibility & contrast

On white

12.21
#42207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42207A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42207A#FFFFFF#000000##FFFFFF
##42207A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#33374A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42207a;
/* rgb */ color: rgb(66, 32, 122);
/* oklch */ color: oklch(34.6% 0.143 295.1);
Tailwind
colors: {
  custom: {
    50: '#7c5fa1',
    500: '#42207a',
    950: '#000000',
  },
}
SCSS
$custom: #42207a;
$custom-light: #7c5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#42207a",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 262.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3465,
    "c": 0.14319,
    "h": 295.1
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#42207A
secondary
#87AD49
accent
#E246A7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42207A

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

Preview Lab → · Contrast checker → · Palette generator →

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