#42166F#42166F

#42166F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.142 H 301.0°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#42166F
RGBrgb(66, 22, 111)
HSLhsl(270, 67%, 26%)
HSVhsv(270, 80%, 44%)
CMYKcmyk(40.5%, 80.2%, 0%, 56.5%)
CIE-LABlab(19.56, 38.99, -42.69)
CIE-LCHlch(19.56, 57.81, 312.40°)
OKLaboklab(32.42% 0.0733 -0.1219)
OKLCHoklch(32.42% 0.142 301)
XYZxyz(5.4022, 2.8797, 15.3071)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42166F #436F16
analogous
#16166F #42166F #6E166F
triadic
#42166F #6F4216 #166F42
tetradic
#42166F #6F1616 #436F16 #166F6E
square
#42166F #6F1616 #436F16 #166F6E
split-complementary
#42166F #6F6E16 #166F16
monochromatic
#0F051A #240C3C #42166F #6020A2 #7F2BD5

Accessibility & contrast

On white

13.32
#42166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#42166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42166F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42166F#FFFFFF#000000##FFFFFF
##42166F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#382D42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42166f;
/* rgb */ color: rgb(66, 22, 111);
/* oklch */ color: oklch(32.4% 0.142 301.0);
Tailwind
colors: {
  custom: {
    50: '#7b5999',
    500: '#42166f',
    950: '#000000',
  },
}
SCSS
$custom: #42166f;
$custom-light: #7b5999;
$custom-dark: #000000;
JSON
{
  "hex": "#42166f",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 269.663,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32416,
    "c": 0.14227,
    "h": 301
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#42166F
secondary
#71A53C
accent
#EA3E95
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42166F

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

Preview Lab → · Contrast checker → · Palette generator →

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