#42166A#42166A

#42166A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.137 H 303.1°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#42166A
RGBrgb(66, 22, 106)
HSLhsl(271, 66%, 25%)
HSVhsv(271, 79%, 42%)
CMYKcmyk(37.7%, 79.2%, 0%, 58.4%)
CIE-LABlab(19.11, 37.68, -40.16)
CIE-LCHlch(19.11, 55.07, 313.17°)
OKLaboklab(31.96% 0.0746 -0.1145)
OKLCHoklch(31.96% 0.137 303.1)
XYZxyz(5.1346, 2.7727, 13.8975)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42166A #3E6A16
analogous
#18166A #42166A #6A1668
triadic
#42166A #6A4216 #166A42
tetradic
#42166A #6A1816 #3E6A16 #16686A
square
#42166A #6A1816 #3E6A16 #16686A
split-complementary
#42166A #686A16 #166A18
monochromatic
#100519 #220B37 #42166A #62219D #812BCF

Accessibility & contrast

On white

13.51
#42166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#42166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42166A
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42166A#FFFFFF#000000##FFFFFF
##42166A1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002E68
Tritanopia (blue-blind)
#3A2B3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #42166a;
/* rgb */ color: rgb(66, 22, 106);
/* oklch */ color: oklch(32.0% 0.137 303.1);
Tailwind
colors: {
  custom: {
    50: '#7b5895',
    500: '#42166a',
    950: '#000000',
  },
}
SCSS
$custom: #42166a;
$custom-light: #7b5895;
$custom-dark: #000000;
JSON
{
  "hex": "#42166a",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 271.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.13668,
    "h": 303.1
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#42166A
secondary
#6BA03B
accent
#E93F90
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42166A

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

Preview Lab → · Contrast checker → · Palette generator →

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