#42114E#42114E

#42114E is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.113 H 319.0°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#42114E
RGBrgb(66, 17, 78)
HSLhsl(288, 64%, 19%)
HSVhsv(288, 78%, 31%)
CMYKcmyk(15.4%, 78.2%, 0%, 69.4%)
CIE-LABlab(16.05, 33.15, -26.40)
CIE-LCHlch(16.05, 42.38, 321.46°)
OKLaboklab(29.09% 0.0851 -0.074)
OKLCHoklch(29.09% 0.113 319)
XYZxyz(3.8222, 2.1094, 7.4121)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42114E #1D4E11
analogous
#23114E #42114E #4E113B
triadic
#42114E #4E4211 #114E42
tetradic
#42114E #4E2311 #1D4E11 #113B4E
square
#42114E #4E2311 #1D4E11 #113B4E
split-complementary
#42114E #3B4E11 #114E23
monochromatic
#150519 #17061C #42114E #6D1C80 #9727B2

Accessibility & contrast

On white

14.77
#42114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42114E
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42114E#FFFFFF#000000##FFFFFF
##42114E1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#15294D
Tritanopia (blue-blind)
#421D2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42114e;
/* rgb */ color: rgb(66, 17, 78);
/* oklch */ color: oklch(29.1% 0.113 319.0);
Tailwind
colors: {
  custom: {
    50: '#795480',
    500: '#42114e',
    950: '#000000',
  },
}
SCSS
$custom: #42114e;
$custom-light: #795480;
$custom-dark: #000000;
JSON
{
  "hex": "#42114e",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 288.197,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29085,
    "c": 0.11277,
    "h": 319
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#42114E
secondary
#448733
accent
#E74161
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42114E

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

Preview Lab → · Contrast checker → · Palette generator →

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