#42197A#42197A

#42197A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.151 H 296.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#42197A
RGBrgb(66, 25, 122)
HSLhsl(265, 66%, 29%)
HSVhsv(265, 80%, 48%)
CMYKcmyk(45.9%, 79.5%, 0%, 52.2%)
CIE-LABlab(21.05, 40.55, -47.32)
CIE-LCHlch(21.05, 62.32, 310.60°)
OKLaboklab(33.78% 0.0675 -0.1355)
OKLCHoklch(33.78% 0.151 296.5)
XYZxyz(6.1063, 3.2585, 18.7158)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42197A #517A19
analogous
#19217A #42197A #73197A
triadic
#42197A #7A4219 #197A42
tetradic
#42197A #7A1921 #517A19 #197A73
square
#42197A #7A1921 #517A19 #197A73
split-complementary
#42197A #7A7319 #217A19
monochromatic
#0E0519 #270F47 #42197A #5D23AD #7A37D6

Accessibility & contrast

On white

12.71
#42197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#42197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42197A
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42197A#FFFFFF#000000##FFFFFF
##42197A1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#333349
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #42197a;
/* rgb */ color: rgb(66, 25, 122);
/* oklch */ color: oklch(33.8% 0.151 296.5);
Tailwind
colors: {
  custom: {
    50: '#7d5ba1',
    500: '#42197a',
    950: '#000000',
  },
}
SCSS
$custom: #42197a;
$custom-light: #7d5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#42197a",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 265.361,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33777,
    "c": 0.1514,
    "h": 296.5
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#42197A
secondary
#80AF40
accent
#E93FA1
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42197A

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

Preview Lab → · Contrast checker → · Palette generator →

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