#42168F#42168F

#42168F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.178 H 290.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#42168F
RGBrgb(66, 22, 143)
HSLhsl(262, 73%, 32%)
HSVhsv(262, 85%, 56%)
CMYKcmyk(53.8%, 84.6%, 0%, 43.9%)
CIE-LABlab(22.71, 47.53, -57.83)
CIE-LCHlch(22.71, 74.85, 309.42°)
OKLaboklab(35.56% 0.0626 -0.1663)
OKLCHoklch(35.56% 0.178 290.6)
XYZxyz(7.4902, 3.7149, 26.3037)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42168F #638F16
analogous
#16278F #42168F #7E168F
triadic
#42168F #8F4216 #168F42
tetradic
#42168F #8F1627 #638F16 #168F7E
square
#42168F #8F1627 #638F16 #168F7E
split-complementary
#42168F #8F7E16 #278F16
monochromatic
#110625 #2A0E5A #42168F #5A1EC4 #793EE1

Accessibility & contrast

On white

12.05
#42168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#42168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42168F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42168F#FFFFFF#000000##FFFFFF
##42168F1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#253B54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42168f;
/* rgb */ color: rgb(66, 22, 143);
/* oklch */ color: oklch(35.6% 0.178 290.6);
Tailwind
colors: {
  custom: {
    50: '#805bb1',
    500: '#42168f',
    950: '#000000',
  },
}
SCSS
$custom: #42168f;
$custom-light: #805bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#42168f",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 261.818,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3556,
    "c": 0.17765,
    "h": 290.6
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#42168F
secondary
#92C13F
accent
#F038AD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #42168F

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

Preview Lab → · Contrast checker → · Palette generator →

#42168F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva