#42196C#42196C

#42196C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.135 H 301.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#42196C
RGBrgb(66, 25, 108)
HSLhsl(270, 62%, 26%)
HSVhsv(270, 77%, 42%)
CMYKcmyk(38.9%, 76.9%, 0%, 57.6%)
CIE-LABlab(19.79, 36.78, -40.37)
CIE-LCHlch(19.79, 54.61, 312.33°)
OKLaboklab(32.5% 0.0711 -0.1151)
OKLCHoklch(32.5% 0.135 301.7)
XYZxyz(5.3005, 2.9362, 14.4719)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42196C #436C19
analogous
#19196C #42196C #6B196C
triadic
#42196C #6C4219 #196C42
tetradic
#42196C #6C1919 #436C19 #196C6B
square
#42196C #6C1919 #436C19 #196C6B
split-complementary
#42196C #6C6B19 #196C19
monochromatic
#0F0619 #240D3A #42196C #60259E #7F30CF

Accessibility & contrast

On white

13.23
#42196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#42196C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42196C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42196C#FFFFFF#000000##FFFFFF
##42196C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#392E41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #42196c;
/* rgb */ color: rgb(66, 25, 108);
/* oklch */ color: oklch(32.5% 0.135 301.7);
Tailwind
colors: {
  custom: {
    50: '#7b5a97',
    500: '#42196c',
    950: '#000000',
  },
}
SCSS
$custom: #42196c;
$custom-light: #7b5a97;
$custom-dark: #000000;
JSON
{
  "hex": "#42196c",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 269.639,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32496,
    "c": 0.1353,
    "h": 301.7
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#42196C
secondary
#71A13F
accent
#E54295
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42196C

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

Preview Lab → · Contrast checker → · Palette generator →

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