#42104B#42104B

#42104B is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.8% C 0.111 H 321.1°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#42104B
RGBrgb(66, 16, 75)
HSLhsl(291, 65%, 18%)
HSVhsv(291, 79%, 29%)
CMYKcmyk(12%, 78.7%, 0%, 70.6%)
CIE-LABlab(15.68, 32.93, -24.94)
CIE-LCHlch(15.68, 41.31, 322.87°)
OKLaboklab(28.75% 0.0864 -0.0698)
OKLCHoklch(28.75% 0.111 321.1)
XYZxyz(3.7019, 2.0370, 6.8534)
Luminance0.0204 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42104B #194B10
analogous
#24104B #42104B #4B1037
triadic
#42104B #4B4210 #104B42
tetradic
#42104B #4B2410 #194B10 #10374B
square
#42104B #4B2410 #194B10 #10374B
split-complementary
#42104B #374B10 #104B24
monochromatic
#160519 #160519 #42104B #6E1B7D #9B26B0

Accessibility & contrast

On white

14.92
#42104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42104B
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42104B#FFFFFF#000000##FFFFFF
##42104B1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#17294A
Tritanopia (blue-blind)
#431B2C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #42104b;
/* rgb */ color: rgb(66, 16, 75);
/* oklch */ color: oklch(28.8% 0.111 321.1);
Tailwind
colors: {
  custom: {
    50: '#79547d',
    500: '#42104b',
    950: '#000000',
  },
}
SCSS
$custom: #42104b;
$custom-light: #79547d;
$custom-dark: #000000;
JSON
{
  "hex": "#42104b",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 290.847,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28752,
    "c": 0.11107,
    "h": 321.1
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#42104B
secondary
#3F8532
accent
#E8405A
background
#F7F5F7
surface
#EEE8EE
border
#C9C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42104B

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

Preview Lab → · Contrast checker → · Palette generator →

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