#42104E#42104E

#42104E is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.114 H 319.1°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#42104E
RGBrgb(66, 16, 78)
HSLhsl(288, 66%, 18%)
HSVhsv(288, 79%, 31%)
CMYKcmyk(15.4%, 79.5%, 0%, 69.4%)
CIE-LABlab(15.90, 33.59, -26.65)
CIE-LCHlch(15.90, 42.88, 321.57°)
OKLaboklab(28.98% 0.0862 -0.0748)
OKLCHoklch(28.98% 0.114 319.1)
XYZxyz(3.8070, 2.0791, 7.4070)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42104E #1C4E10
analogous
#23104E #42104E #4E103B
triadic
#42104E #4E4210 #104E42
tetradic
#42104E #4E2310 #1C4E10 #103B4E
square
#42104E #4E2310 #1C4E10 #103B4E
split-complementary
#42104E #3B4E10 #104E23
monochromatic
#150519 #17061B #42104E #6D1A81 #9825B4

Accessibility & contrast

On white

14.83
#42104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#42104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42104E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42104E#FFFFFF#000000##FFFFFF
##42104E1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#14294D
Tritanopia (blue-blind)
#421C2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42104e;
/* rgb */ color: rgb(66, 16, 78);
/* oklch */ color: oklch(29.0% 0.114 319.1);
Tailwind
colors: {
  custom: {
    50: '#795480',
    500: '#42104e',
    950: '#000000',
  },
}
SCSS
$custom: #42104e;
$custom-light: #795480;
$custom-dark: #000000;
JSON
{
  "hex": "#42104e",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 288.387,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28975,
    "c": 0.1141,
    "h": 319.1
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#42104E
secondary
#438832
accent
#E93F60
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42104E

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

Preview Lab → · Contrast checker → · Palette generator →

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