#42167D#42167D

#42167D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.158 H 295.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#42167D
RGBrgb(66, 22, 125)
HSLhsl(266, 70%, 29%)
HSVhsv(266, 82%, 49%)
CMYKcmyk(47.2%, 82.4%, 0%, 51%)
CIE-LABlab(20.88, 42.70, -49.52)
CIE-LCHlch(20.88, 65.39, 310.77°)
OKLaboklab(33.74% 0.069 -0.142)
OKLCHoklch(33.74% 0.158 295.9)
XYZxyz(6.2344, 3.2126, 19.6897)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42167D #517D16
analogous
#161E7D #42167D #76167D
triadic
#42167D #7D4216 #167D42
tetradic
#42167D #7D161E #517D16 #167D76
square
#42167D #7D161E #517D16 #167D76
split-complementary
#42167D #7D7616 #1E7D16
monochromatic
#0E051A #270D49 #42167D #5D1FB1 #7A32DB

Accessibility & contrast

On white

12.78
#42167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#42167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42167D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42167D#FFFFFF#000000##FFFFFF
##42167D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#31334A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42167d;
/* rgb */ color: rgb(66, 22, 125);
/* oklch */ color: oklch(33.7% 0.158 295.9);
Tailwind
colors: {
  custom: {
    50: '#7d59a4',
    500: '#42167d',
    950: '#000000',
  },
}
SCSS
$custom: #42167d;
$custom-light: #7d59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42167d",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 265.631,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33743,
    "c": 0.15785,
    "h": 295.9
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#42167D
secondary
#80B23D
accent
#ED3BA1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42167D

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

Preview Lab → · Contrast checker → · Palette generator →

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