#42166D#42166D

#42166D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.140 H 301.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#42166D
RGBrgb(66, 22, 109)
HSLhsl(270, 66%, 26%)
HSVhsv(270, 80%, 43%)
CMYKcmyk(39.4%, 79.8%, 0%, 57.3%)
CIE-LABlab(19.38, 38.46, -41.69)
CIE-LCHlch(19.38, 56.72, 312.69°)
OKLaboklab(32.23% 0.0739 -0.119)
OKLCHoklch(32.23% 0.14 301.8)
XYZxyz(5.2933, 2.8362, 14.7336)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42166D #416D16
analogous
#17166D #42166D #6D166C
triadic
#42166D #6D4216 #166D42
tetradic
#42166D #6D1716 #416D16 #166C6D
square
#42166D #6D1716 #416D16 #166C6D
split-complementary
#42166D #6C6D16 #166D17
monochromatic
#0F0519 #230C3A #42166D #6120A0 #802BD3

Accessibility & contrast

On white

13.40
#42166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#42166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42166D
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42166D#FFFFFF#000000##FFFFFF
##42166D1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#392D41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42166d;
/* rgb */ color: rgb(66, 22, 109);
/* oklch */ color: oklch(32.2% 0.140 301.8);
Tailwind
colors: {
  custom: {
    50: '#7b5898',
    500: '#42166d',
    950: '#000000',
  },
}
SCSS
$custom: #42166d;
$custom-light: #7b5898;
$custom-dark: #000000;
JSON
{
  "hex": "#42166d",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 270.345,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32234,
    "c": 0.14004,
    "h": 301.8
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#42166D
secondary
#6FA33C
accent
#E93E93
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42166D

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

Preview Lab → · Contrast checker → · Palette generator →

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