#42104C#42104C

#42104C is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.112 H 320.4°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#42104C
RGBrgb(66, 16, 76)
HSLhsl(290, 65%, 18%)
HSVhsv(290, 79%, 30%)
CMYKcmyk(13.2%, 78.9%, 0%, 70.2%)
CIE-LABlab(15.75, 33.15, -25.51)
CIE-LCHlch(15.75, 41.83, 322.42°)
OKLaboklab(28.83% 0.0864 -0.0714)
OKLCHoklch(28.83% 0.112 320.4)
XYZxyz(3.7364, 2.0508, 7.0351)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42104C #1A4C10
analogous
#24104C #42104C #4C1038
triadic
#42104C #4C4210 #104C42
tetradic
#42104C #4C2410 #1A4C10 #10384C
square
#42104C #4C2410 #1A4C10 #10384C
split-complementary
#42104C #384C10 #104C24
monochromatic
#160519 #160519 #42104C #6E1B7F #9A25B1

Accessibility & contrast

On white

14.89
#42104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#42104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42104C
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42104C#FFFFFF#000000##FFFFFF
##42104C1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#16294B
Tritanopia (blue-blind)
#421B2D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #42104c;
/* rgb */ color: rgb(66, 16, 76);
/* oklch */ color: oklch(28.8% 0.112 320.4);
Tailwind
colors: {
  custom: {
    50: '#79547e',
    500: '#42104c',
    950: '#000000',
  },
}
SCSS
$custom: #42104c;
$custom-light: #79547e;
$custom-dark: #000000;
JSON
{
  "hex": "#42104c",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 290,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28825,
    "c": 0.11208,
    "h": 320.4
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#42104C
secondary
#408632
accent
#E8405C
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42104C

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

Preview Lab → · Contrast checker → · Palette generator →

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