#42116C#42116C

#42116C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.144 H 303.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#42116C
RGBrgb(66, 17, 108)
HSLhsl(272, 73%, 25%)
HSVhsv(272, 84%, 42%)
CMYKcmyk(38.9%, 84.3%, 0%, 57.6%)
CIE-LABlab(18.55, 40.33, -42.39)
CIE-LCHlch(18.55, 58.50, 313.57°)
OKLaboklab(31.63% 0.0786 -0.121)
OKLCHoklch(31.63% 0.144 303)
XYZxyz(5.1533, 2.6419, 14.4229)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42116C #3B6C11
analogous
#15116C #42116C #6C1169
triadic
#42116C #6C4211 #116C42
tetradic
#42116C #6C1511 #3B6C11 #11696C
square
#42116C #6C1511 #3B6C11 #11696C
split-complementary
#42116C #696C11 #116C15
monochromatic
#10041A #220937 #42116C #6219A1 #8322D6

Accessibility & contrast

On white

13.74
#42116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#42116C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42116C
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42116C#FFFFFF#000000##FFFFFF
##42116C1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#392A3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #42116c;
/* rgb */ color: rgb(66, 17, 108);
/* oklch */ color: oklch(31.6% 0.144 303.0);
Tailwind
colors: {
  custom: {
    50: '#7b5697',
    500: '#42116c',
    950: '#000000',
  },
}
SCSS
$custom: #42116c;
$custom-light: #7b5697;
$custom-dark: #000000;
JSON
{
  "hex": "#42116c",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 272.308,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31628,
    "c": 0.14429,
    "h": 303
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#42116C
secondary
#68A435
accent
#EF388D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #42116C

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

Preview Lab → · Contrast checker → · Palette generator →

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