#42108D#42108D

#42108D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.180 H 291.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#42108D
RGBrgb(66, 16, 141)
HSLhsl(264, 80%, 31%)
HSVhsv(264, 89%, 55%)
CMYKcmyk(53.2%, 88.7%, 0%, 44.7%)
CIE-LABlab(21.77, 49.14, -58.13)
CIE-LCHlch(21.77, 76.11, 310.21°)
OKLaboklab(34.86% 0.0668 -0.1671)
OKLCHoklch(34.86% 0.18 291.8)
XYZxyz(7.2384, 3.4516, 25.4790)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42108D #5B8D10
analogous
#101C8D #42108D #80108D
triadic
#42108D #8D4210 #108D42
tetradic
#42108D #8D101C #5B8D10 #108D80
square
#42108D #8D101C #5B8D10 #108D80
split-complementary
#42108D #8D8010 #1C8D10
monochromatic
#0F041F #280A56 #42108D #5C16C4 #7930E7

Accessibility & contrast

On white

12.42
#42108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#42108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42108D
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42108D#FFFFFF#000000##FFFFFF
##42108D1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#273852
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42108d;
/* rgb */ color: rgb(66, 16, 141);
/* oklch */ color: oklch(34.9% 0.180 291.8);
Tailwind
colors: {
  custom: {
    50: '#8058b0',
    500: '#42108d',
    950: '#000000',
  },
}
SCSS
$custom: #42108d;
$custom-light: #8058b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42108d",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 264,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34855,
    "c": 0.17992,
    "h": 291.8
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#42108D
secondary
#8AC237
accent
#F632A8
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #42108D

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

Preview Lab → · Contrast checker → · Palette generator →

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