#42207C#42207C

#42207C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.146 H 294.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#42207C
RGBrgb(66, 32, 124)
HSLhsl(262, 59%, 31%)
HSVhsv(262, 74%, 49%)
CMYKcmyk(46.8%, 74.2%, 0%, 51.4%)
CIE-LABlab(22.47, 37.62, -46.28)
CIE-LCHlch(22.47, 59.64, 309.10°)
OKLaboklab(34.83% 0.0603 -0.1325)
OKLCHoklch(34.83% 0.146 294.5)
XYZxyz(6.4004, 3.6463, 19.4315)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42207C #5A7C20
analogous
#202C7C #42207C #70207C
triadic
#42207C #7C4220 #207C42
tetradic
#42207C #7C202C #5A7C20 #207C70
square
#42207C #7C202C #5A7C20 #207C70
split-complementary
#42207C #7C7020 #2C7C20
monochromatic
#0E071B #28134B #42207C #5C2DAD #7947CF

Accessibility & contrast

On white

12.14
#42207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42207C
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42207C#FFFFFF#000000##FFFFFF
##42207C1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#31384C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42207c;
/* rgb */ color: rgb(66, 32, 124);
/* oklch */ color: oklch(34.8% 0.146 294.5);
Tailwind
colors: {
  custom: {
    50: '#7c5fa3',
    500: '#42207c',
    950: '#000000',
  },
}
SCSS
$custom: #42207c;
$custom-light: #7c5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42207c",
  "rgb": {
    "r": 66,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 262.174,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34831,
    "c": 0.14562,
    "h": 294.5
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#42207C
secondary
#89AF49
accent
#E246A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42207C

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

Preview Lab → · Contrast checker → · Palette generator →

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