#42207D#42207D

#42207D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.147 H 294.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#42207D
RGBrgb(66, 32, 125)
HSLhsl(262, 59%, 31%)
HSVhsv(262, 74%, 49%)
CMYKcmyk(47.2%, 74.4%, 0%, 51%)
CIE-LABlab(22.56, 37.90, -46.77)
CIE-LCHlch(22.56, 60.20, 309.02°)
OKLaboklab(34.92% 0.0601 -0.134)
OKLCHoklch(34.92% 0.147 294.2)
XYZxyz(6.4639, 3.6718, 19.7662)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42207D #5B7D20
analogous
#202D7D #42207D #70207D
triadic
#42207D #7D4220 #207D42
tetradic
#42207D #7D202D #5B7D20 #207D70
square
#42207D #7D202D #5B7D20 #207D70
split-complementary
#42207D #7D7020 #2D7D20
monochromatic
#0F071C #28144C #42207D #5C2CAE #7947D0

Accessibility & contrast

On white

12.11
#42207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#42207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42207D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42207D#FFFFFF#000000##FFFFFF
##42207D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#31384C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42207d;
/* rgb */ color: rgb(66, 32, 125);
/* oklch */ color: oklch(34.9% 0.147 294.2);
Tailwind
colors: {
  custom: {
    50: '#7c5fa3',
    500: '#42207d',
    950: '#000000',
  },
}
SCSS
$custom: #42207d;
$custom-light: #7c5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42207d",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 261.935,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34922,
    "c": 0.14684,
    "h": 294.2
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#42207D
secondary
#8AB049
accent
#E245A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42207D

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

Preview Lab → · Contrast checker → · Palette generator →

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