#42104F#42104F

#42104F is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.115 H 318.4°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#42104F
RGBrgb(66, 16, 79)
HSLhsl(288, 66%, 19%)
HSVhsv(288, 80%, 31%)
CMYKcmyk(16.5%, 79.7%, 0%, 69%)
CIE-LABlab(15.97, 33.81, -27.22)
CIE-LCHlch(15.97, 43.40, 321.17°)
OKLaboklab(29.05% 0.0861 -0.0764)
OKLCHoklch(29.05% 0.115 318.4)
XYZxyz(3.8431, 2.0935, 7.5973)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42104F #1D4F10
analogous
#22104F #42104F #4F103C
triadic
#42104F #4F4210 #104F42
tetradic
#42104F #4F2210 #1D4F10 #103C4F
square
#42104F #4F2210 #1D4F10 #103C4F
split-complementary
#42104F #3C4F10 #104F22
monochromatic
#150519 #17061C #42104F #6D1A82 #9725B5

Accessibility & contrast

On white

14.80
#42104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42104F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42104F#FFFFFF#000000##FFFFFF
##42104F1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#13294E
Tritanopia (blue-blind)
#421D2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42104f;
/* rgb */ color: rgb(66, 16, 79);
/* oklch */ color: oklch(29.1% 0.115 318.4);
Tailwind
colors: {
  custom: {
    50: '#795481',
    500: '#42104f',
    950: '#000000',
  },
}
SCSS
$custom: #42104f;
$custom-light: #795481;
$custom-dark: #000000;
JSON
{
  "hex": "#42104f",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 287.619,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29051,
    "c": 0.11512,
    "h": 318.4
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#42104F
secondary
#448932
accent
#E93F62
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42104F

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

Preview Lab → · Contrast checker → · Palette generator →

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