#42196E#42196E

#42196E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.138 H 300.9°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#42196E
RGBrgb(66, 25, 110)
HSLhsl(269, 63%, 26%)
HSVhsv(269, 77%, 43%)
CMYKcmyk(40%, 77.3%, 0%, 56.9%)
CIE-LABlab(19.96, 37.31, -41.38)
CIE-LCHlch(19.96, 55.72, 312.04°)
OKLaboklab(32.67% 0.0707 -0.1181)
OKLCHoklch(32.67% 0.138 300.9)
XYZxyz(5.4082, 2.9793, 15.0390)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42196E #456E19
analogous
#191B6E #42196E #6D196E
triadic
#42196E #6E4219 #196E42
tetradic
#42196E #6E191B #456E19 #196E6D
square
#42196E #6E191B #456E19 #196E6D
split-complementary
#42196E #6E6D19 #1B6E19
monochromatic
#0F0619 #240E3C #42196E #6024A0 #7E31D0

Accessibility & contrast

On white

13.16
#42196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#42196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42196E
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42196E#FFFFFF#000000##FFFFFF
##42196E1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#382E42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #42196e;
/* rgb */ color: rgb(66, 25, 110);
/* oklch */ color: oklch(32.7% 0.138 300.9);
Tailwind
colors: {
  custom: {
    50: '#7b5a98',
    500: '#42196e',
    950: '#000000',
  },
}
SCSS
$custom: #42196e;
$custom-light: #7b5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#42196e",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 268.941,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32674,
    "c": 0.13762,
    "h": 300.9
  },
  "luminance": 0.02979
}

Semantic roles & 50–950 ramp

primary
#42196E
secondary
#73A33F
accent
#E64297
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42196E

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

Preview Lab → · Contrast checker → · Palette generator →

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