#42167C#42167C

#42167C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.157 H 296.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#42167C
RGBrgb(66, 22, 124)
HSLhsl(266, 70%, 29%)
HSVhsv(266, 82%, 49%)
CMYKcmyk(46.8%, 82.3%, 0%, 51.4%)
CIE-LABlab(20.78, 42.43, -49.04)
CIE-LCHlch(20.78, 64.85, 310.87°)
OKLaboklab(33.65% 0.0694 -0.1406)
OKLCHoklch(33.65% 0.157 296.3)
XYZxyz(6.1708, 3.1872, 19.3549)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42167C #507C16
analogous
#161D7C #42167C #75167C
triadic
#42167C #7C4216 #167C42
tetradic
#42167C #7C161D #507C16 #167C75
square
#42167C #7C161D #507C16 #167C75
split-complementary
#42167C #7C7516 #1D7C16
monochromatic
#0E051A #260D48 #42167C #5E1FB0 #7B32DB

Accessibility & contrast

On white

12.83
#42167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42167C
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42167C#FFFFFF#000000##FFFFFF
##42167C1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#323349
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #42167c;
/* rgb */ color: rgb(66, 22, 124);
/* oklch */ color: oklch(33.6% 0.157 296.3);
Tailwind
colors: {
  custom: {
    50: '#7d59a3',
    500: '#42167c',
    950: '#000000',
  },
}
SCSS
$custom: #42167c;
$custom-light: #7d59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42167c",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 265.882,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33646,
    "c": 0.15674,
    "h": 296.3
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#42167C
secondary
#7FB13D
accent
#ED3BA0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #42167C

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

Preview Lab → · Contrast checker → · Palette generator →

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