#42207E#42207E

#42207E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.148 H 293.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#42207E
RGBrgb(66, 32, 126)
HSLhsl(262, 59%, 31%)
HSVhsv(262, 75%, 49%)
CMYKcmyk(47.6%, 74.6%, 0%, 50.6%)
CIE-LABlab(22.64, 38.19, -47.26)
CIE-LCHlch(22.64, 60.76, 308.94°)
OKLaboklab(35.01% 0.0599 -0.1354)
OKLCHoklch(35.01% 0.148 293.9)
XYZxyz(6.5281, 3.6974, 20.1043)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42207E #5C7E20
analogous
#202D7E #42207E #71207E
triadic
#42207E #7E4220 #207E42
tetradic
#42207E #7E202D #5C7E20 #207E71
square
#42207E #7E202D #5C7E20 #207E71
split-complementary
#42207E #7E7120 #2D7E20
monochromatic
#0F071C #28144D #42207E #5C2CAF #7948D0

Accessibility & contrast

On white

12.07
#42207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#42207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42207E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42207E#FFFFFF#000000##FFFFFF
##42207E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#30384D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42207e;
/* rgb */ color: rgb(66, 32, 126);
/* oklch */ color: oklch(35.0% 0.148 293.9);
Tailwind
colors: {
  custom: {
    50: '#7d5fa4',
    500: '#42207e',
    950: '#000000',
  },
}
SCSS
$custom: #42207e;
$custom-light: #7d5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42207e",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 261.702,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35013,
    "c": 0.14805,
    "h": 293.9
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#42207E
secondary
#8BB149
accent
#E345AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42207E

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

Preview Lab → · Contrast checker → · Palette generator →

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