#42196B#42196B

#42196B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.134 H 302.1°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#42196B
RGBrgb(66, 25, 107)
HSLhsl(270, 62%, 26%)
HSVhsv(270, 77%, 42%)
CMYKcmyk(38.3%, 76.6%, 0%, 58%)
CIE-LABlab(19.70, 36.51, -39.86)
CIE-LCHlch(19.70, 54.05, 312.49°)
OKLaboklab(32.41% 0.0713 -0.1136)
OKLCHoklch(32.41% 0.134 302.1)
XYZxyz(5.2476, 2.9150, 14.1933)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42196B #426B19
analogous
#19196B #42196B #6B196B
triadic
#42196B #6B4219 #196B42
tetradic
#42196B #6B1919 #426B19 #196B6B
square
#42196B #6B1919 #426B19 #196B6B
split-complementary
#42196B #6B6B19 #196B19
monochromatic
#0F0619 #230D39 #42196B #61259D #7F30CE

Accessibility & contrast

On white

13.27
#42196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42196B
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42196B#FFFFFF#000000##FFFFFF
##42196B1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#392D40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #42196b;
/* rgb */ color: rgb(66, 25, 107);
/* oklch */ color: oklch(32.4% 0.134 302.1);
Tailwind
colors: {
  custom: {
    50: '#7b5a96',
    500: '#42196b',
    950: '#000000',
  },
}
SCSS
$custom: #42196b;
$custom-light: #7b5a96;
$custom-dark: #000000;
JSON
{
  "hex": "#42196b",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 270,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32408,
    "c": 0.13415,
    "h": 302.1
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#42196B
secondary
#70A13F
accent
#E54394
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42196B

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

Preview Lab → · Contrast checker → · Palette generator →

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