#42104A#42104A

#42104A is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.110 H 321.8°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#42104A
RGBrgb(66, 16, 74)
HSLhsl(292, 64%, 18%)
HSVhsv(292, 78%, 29%)
CMYKcmyk(10.8%, 78.4%, 0%, 71%)
CIE-LABlab(15.61, 32.72, -24.36)
CIE-LCHlch(15.61, 40.79, 323.33°)
OKLaboklab(28.68% 0.0865 -0.0681)
OKLCHoklch(28.68% 0.11 321.8)
XYZxyz(3.6680, 2.0234, 6.6746)
Luminance0.0202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42104A #184A10
analogous
#25104A #42104A #4A1035
triadic
#42104A #4A4210 #104A42
tetradic
#42104A #4A2510 #184A10 #10354A
square
#42104A #4A2510 #184A10 #10354A
split-complementary
#42104A #354A10 #104A25
monochromatic
#160519 #160519 #42104A #6F1B7C #9C26AF

Accessibility & contrast

On white

14.95
#42104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#42104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42104A
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42104A#FFFFFF#000000##FFFFFF
##42104A1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#182949
Tritanopia (blue-blind)
#431B2B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #42104a;
/* rgb */ color: rgb(66, 16, 74);
/* oklch */ color: oklch(28.7% 0.110 321.8);
Tailwind
colors: {
  custom: {
    50: '#79547d',
    500: '#42104a',
    950: '#000000',
  },
}
SCSS
$custom: #42104a;
$custom-light: #79547d;
$custom-dark: #000000;
JSON
{
  "hex": "#42104a",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 291.724,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.28679,
    "c": 0.11007,
    "h": 321.8
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#42104A
secondary
#3D8432
accent
#E74057
background
#F7F5F7
surface
#EEE8EE
border
#C9C4C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #42104A

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

Preview Lab → · Contrast checker → · Palette generator →

#42104A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva