#42147D#42147D

#42147D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.160 H 296.2°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#42147D
RGBrgb(66, 20, 125)
HSLhsl(266, 72%, 28%)
HSVhsv(266, 84%, 49%)
CMYKcmyk(47.2%, 84%, 0%, 51%)
CIE-LABlab(20.59, 43.52, -49.98)
CIE-LCHlch(20.59, 66.28, 311.05°)
OKLaboklab(33.55% 0.0705 -0.1433)
OKLCHoklch(33.55% 0.16 296.2)
XYZxyz(6.1976, 3.1391, 19.6774)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42147D #4F7D14
analogous
#141A7D #42147D #76147D
triadic
#42147D #7D4214 #147D42
tetradic
#42147D #7D141A #4F7D14 #147D76
square
#42147D #7D141A #4F7D14 #147D76
split-complementary
#42147D #7D7614 #1A7D14
monochromatic
#0E041A #260C48 #42147D #5E1CB2 #7B2EDE

Accessibility & contrast

On white

12.90
#42147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#42147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42147D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42147D#FFFFFF#000000##FFFFFF
##42147D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#313349
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42147d;
/* rgb */ color: rgb(66, 20, 125);
/* oklch */ color: oklch(33.5% 0.160 296.2);
Tailwind
colors: {
  custom: {
    50: '#7d59a4',
    500: '#42147d',
    950: '#000000',
  },
}
SCSS
$custom: #42147d;
$custom-light: #7d59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42147d",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 266.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.15972,
    "h": 296.2
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#42147D
secondary
#7EB23A
accent
#EF399F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42147D

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

Preview Lab → · Contrast checker → · Palette generator →

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