#42124E#42124E

#42124E is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.2% C 0.111 H 318.8°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#42124E
RGBrgb(66, 18, 78)
HSLhsl(288, 63%, 19%)
HSVhsv(288, 77%, 31%)
CMYKcmyk(15.4%, 76.9%, 0%, 69.4%)
CIE-LABlab(16.21, 32.70, -26.15)
CIE-LCHlch(16.21, 41.87, 321.35°)
OKLaboklab(29.2% 0.0839 -0.0733)
OKLCHoklch(29.2% 0.111 318.8)
XYZxyz(3.8380, 2.1411, 7.4174)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42124E #1E4E12
analogous
#24124E #42124E #4E123C
triadic
#42124E #4E4212 #124E42
tetradic
#42124E #4E2412 #1E4E12 #123C4E
square
#42124E #4E2412 #1E4E12 #123C4E
split-complementary
#42124E #3C4E12 #124E24
monochromatic
#150619 #18071C #42124E #6C1D80 #9629B1

Accessibility & contrast

On white

14.70
#42124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#42124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42124E
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42124E#FFFFFF#000000##FFFFFF
##42124E1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42124e;
/* rgb */ color: rgb(66, 18, 78);
/* oklch */ color: oklch(29.2% 0.111 318.8);
Tailwind
colors: {
  custom: {
    50: '#795580',
    500: '#42124e',
    950: '#000000',
  },
}
SCSS
$custom: #42124e;
$custom-light: #795580;
$custom-dark: #000000;
JSON
{
  "hex": "#42124e",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 288,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.292,
    "c": 0.11138,
    "h": 318.8
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#42124E
secondary
#458735
accent
#E64263
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42124E

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

Preview Lab → · Contrast checker → · Palette generator →

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