#42207F#42207F

#42207F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.149 H 293.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#42207F
RGBrgb(66, 32, 127)
HSLhsl(261, 60%, 31%)
HSVhsv(261, 75%, 50%)
CMYKcmyk(48%, 74.8%, 0%, 50.2%)
CIE-LABlab(22.74, 38.48, -47.74)
CIE-LCHlch(22.74, 61.32, 308.87°)
OKLaboklab(35.1% 0.0597 -0.1368)
OKLCHoklch(35.1% 0.149 293.6)
XYZxyz(6.5930, 3.7234, 20.4459)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42207F #5D7F20
analogous
#202D7F #42207F #71207F
triadic
#42207F #7F4220 #207F42
tetradic
#42207F #7F202D #5D7F20 #207F71
square
#42207F #7F202D #5D7F20 #207F71
split-complementary
#42207F #7F7120 #2D7F20
monochromatic
#0F071D #29144E #42207F #5B2CB0 #7948D1

Accessibility & contrast

On white

12.04
#42207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42207F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42207F#FFFFFF#000000##FFFFFF
##42207F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#30394D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42207f;
/* rgb */ color: rgb(66, 32, 127);
/* oklch */ color: oklch(35.1% 0.149 293.6);
Tailwind
colors: {
  custom: {
    50: '#7d5fa5',
    500: '#42207f',
    950: '#000000',
  },
}
SCSS
$custom: #42207f;
$custom-light: #7d5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#42207f",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 261.474,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35105,
    "c": 0.14927,
    "h": 293.6
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42207F

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

Preview Lab → · Contrast checker → · Palette generator →

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