#42166C#42166C

#42166C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.139 H 302.3°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#42166C
RGBrgb(66, 22, 108)
HSLhsl(271, 66%, 25%)
HSVhsv(271, 80%, 42%)
CMYKcmyk(38.9%, 79.6%, 0%, 57.6%)
CIE-LABlab(19.29, 38.20, -41.18)
CIE-LCHlch(19.29, 56.17, 312.85°)
OKLaboklab(32.14% 0.0741 -0.1175)
OKLCHoklch(32.14% 0.139 302.3)
XYZxyz(5.2398, 2.8148, 14.4517)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42166C #406C16
analogous
#17166C #42166C #6C166B
triadic
#42166C #6C4216 #166C42
tetradic
#42166C #6C1716 #406C16 #166B6C
square
#42166C #6C1716 #406C16 #166B6C
split-complementary
#42166C #6B6C16 #166C17
monochromatic
#100519 #230C39 #42166C #61209F #802BD2

Accessibility & contrast

On white

13.44
#42166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#42166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42166C
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42166C#FFFFFF#000000##FFFFFF
##42166C1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#392C40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42166c;
/* rgb */ color: rgb(66, 22, 108);
/* oklch */ color: oklch(32.1% 0.139 302.3);
Tailwind
colors: {
  custom: {
    50: '#7b5897',
    500: '#42166c',
    950: '#000000',
  },
}
SCSS
$custom: #42166c;
$custom-light: #7b5897;
$custom-dark: #000000;
JSON
{
  "hex": "#42166c",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 270.698,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32144,
    "c": 0.13891,
    "h": 302.3
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#42166C
secondary
#6EA23C
accent
#E93F92
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42166C

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

Preview Lab → · Contrast checker → · Palette generator →

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