#42167B#42167B

#42167B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.156 H 296.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#42167B
RGBrgb(66, 22, 123)
HSLhsl(266, 70%, 28%)
HSVhsv(266, 82%, 48%)
CMYKcmyk(46.3%, 82.1%, 0%, 51.8%)
CIE-LABlab(20.68, 42.16, -48.56)
CIE-LCHlch(20.68, 64.31, 310.96°)
OKLaboklab(33.55% 0.0697 -0.1392)
OKLCHoklch(33.55% 0.156 296.6)
XYZxyz(6.1079, 3.1620, 19.0236)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42167B #4F7B16
analogous
#161C7B #42167B #74167B
triadic
#42167B #7B4216 #167B42
tetradic
#42167B #7B161C #4F7B16 #167B74
square
#42167B #7B161C #4F7B16 #167B74
split-complementary
#42167B #7B7416 #1C7B16
monochromatic
#0E051A #260D47 #42167B #5E1FAF #7B31DA

Accessibility & contrast

On white

12.86
#42167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#42167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42167B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42167B#FFFFFF#000000##FFFFFF
##42167B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#323249
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42167b;
/* rgb */ color: rgb(66, 22, 123);
/* oklch */ color: oklch(33.5% 0.156 296.6);
Tailwind
colors: {
  custom: {
    50: '#7d59a2',
    500: '#42167b',
    950: '#000000',
  },
}
SCSS
$custom: #42167b;
$custom-light: #7d59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#42167b",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 266.139,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33549,
    "c": 0.15563,
    "h": 296.6
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#42167B
secondary
#7EB03D
accent
#EC3B9F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42167B

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

Preview Lab → · Contrast checker → · Palette generator →

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