#42197D#42197D

#42197D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.155 H 295.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#42197D
RGBrgb(66, 25, 125)
HSLhsl(265, 67%, 29%)
HSVhsv(265, 80%, 49%)
CMYKcmyk(47.2%, 80%, 0%, 51%)
CIE-LABlab(21.33, 41.37, -48.77)
CIE-LCHlch(21.33, 63.95, 310.31°)
OKLaboklab(34.06% 0.0666 -0.1398)
OKLCHoklch(34.06% 0.155 295.5)
XYZxyz(6.2951, 3.3340, 19.7099)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42197D #547D19
analogous
#19227D #42197D #74197D
triadic
#42197D #7D4219 #197D42
tetradic
#42197D #7D1922 #547D19 #197D74
square
#42197D #7D1922 #547D19 #197D74
split-complementary
#42197D #7D7419 #227D19
monochromatic
#0D051A #270F4A #42197D #5D23B0 #7A39D7

Accessibility & contrast

On white

12.60
#42197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#42197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42197D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42197D#FFFFFF#000000##FFFFFF
##42197D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#31354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42197d;
/* rgb */ color: rgb(66, 25, 125);
/* oklch */ color: oklch(34.1% 0.155 295.5);
Tailwind
colors: {
  custom: {
    50: '#7d5ba4',
    500: '#42197d',
    950: '#000000',
  },
}
SCSS
$custom: #42197d;
$custom-light: #7d5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#42197d",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 264.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34063,
    "c": 0.15483,
    "h": 295.5
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#42197D
secondary
#83B140
accent
#EA3EA3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42197D

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

Preview Lab → · Contrast checker → · Palette generator →

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