#42196A#42196A

#42196A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.133 H 302.5°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#42196A
RGBrgb(66, 25, 106)
HSLhsl(270, 62%, 26%)
HSVhsv(270, 76%, 42%)
CMYKcmyk(37.7%, 76.4%, 0%, 58.4%)
CIE-LABlab(19.61, 36.24, -39.34)
CIE-LCHlch(19.61, 53.49, 312.65°)
OKLaboklab(32.32% 0.0716 -0.1121)
OKLCHoklch(32.32% 0.133 302.5)
XYZxyz(5.1953, 2.8941, 13.9178)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42196A #416A19
analogous
#19196A #42196A #6A1969
triadic
#42196A #6A4219 #196A42
tetradic
#42196A #6A1919 #416A19 #19696A
square
#42196A #6A1919 #416A19 #19696A
split-complementary
#42196A #696A19 #196A19
monochromatic
#0F0619 #230D38 #42196A #61259C #8030CD

Accessibility & contrast

On white

13.30
#42196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#42196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42196A
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42196A#FFFFFF#000000##FFFFFF
##42196A1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002F68
Tritanopia (blue-blind)
#3A2D40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42196a;
/* rgb */ color: rgb(66, 25, 106);
/* oklch */ color: oklch(32.3% 0.133 302.5);
Tailwind
colors: {
  custom: {
    50: '#7b5a95',
    500: '#42196a',
    950: '#000000',
  },
}
SCSS
$custom: #42196a;
$custom-light: #7b5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#42196a",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 270.37,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32321,
    "c": 0.13299,
    "h": 302.5
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#42196A
secondary
#6FA03F
accent
#E54393
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42196A

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

Preview Lab → · Contrast checker → · Palette generator →

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