#42197B#42197B

#42197B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.153 H 296.1°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#42197B
RGBrgb(66, 25, 123)
HSLhsl(265, 66%, 29%)
HSVhsv(265, 80%, 48%)
CMYKcmyk(46.3%, 79.7%, 0%, 51.8%)
CIE-LABlab(21.14, 40.83, -47.80)
CIE-LCHlch(21.14, 62.87, 310.50°)
OKLaboklab(33.87% 0.0672 -0.137)
OKLCHoklch(33.87% 0.153 296.1)
XYZxyz(6.1686, 3.2834, 19.0438)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42197B #527B19
analogous
#19217B #42197B #73197B
triadic
#42197B #7B4219 #197B42
tetradic
#42197B #7B1921 #527B19 #197B73
square
#42197B #7B1921 #527B19 #197B73
split-complementary
#42197B #7B7319 #217B19
monochromatic
#0E0519 #270F48 #42197B #5D23AE #7A38D7

Accessibility & contrast

On white

12.68
#42197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#42197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42197B
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42197B#FFFFFF#000000##FFFFFF
##42197B1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#323449
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42197b;
/* rgb */ color: rgb(66, 25, 123);
/* oklch */ color: oklch(33.9% 0.153 296.1);
Tailwind
colors: {
  custom: {
    50: '#7d5ba2',
    500: '#42197b',
    950: '#000000',
  },
}
SCSS
$custom: #42197b;
$custom-light: #7d5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#42197b",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 265.102,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33872,
    "c": 0.15255,
    "h": 296.1
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#42197B
secondary
#81AF40
accent
#E93FA2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42197B

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

Preview Lab → · Contrast checker → · Palette generator →

#42197B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva