#42124D#42124D

#42124D is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.110 H 319.5°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#42124D
RGBrgb(66, 18, 77)
HSLhsl(289, 62%, 19%)
HSVhsv(289, 77%, 30%)
CMYKcmyk(14.3%, 76.6%, 0%, 69.8%)
CIE-LABlab(16.14, 32.47, -25.58)
CIE-LCHlch(16.14, 41.34, 321.78°)
OKLaboklab(29.13% 0.0839 -0.0716)
OKLCHoklch(29.13% 0.11 319.5)
XYZxyz(3.8025, 2.1269, 7.2300)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42124D #1D4D12
analogous
#24124D #42124D #4D123A
triadic
#42124D #4D4212 #124D42
tetradic
#42124D #4D2412 #1D4D12 #123A4D
square
#42124D #4D2412 #1D4D12 #123A4D
split-complementary
#42124D #3A4D12 #124D24
monochromatic
#150619 #17061B #42124D #6D1E7F #9729B0

Accessibility & contrast

On white

14.73
#42124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42124D
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42124D#FFFFFF#000000##FFFFFF
##42124D1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#172A4C
Tritanopia (blue-blind)
#421D2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42124d;
/* rgb */ color: rgb(66, 18, 77);
/* oklch */ color: oklch(29.1% 0.110 319.5);
Tailwind
colors: {
  custom: {
    50: '#79557f',
    500: '#42124d',
    950: '#000000',
  },
}
SCSS
$custom: #42124d;
$custom-light: #79557f;
$custom-dark: #000000;
JSON
{
  "hex": "#42124d",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 288.814,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29125,
    "c": 0.11034,
    "h": 319.5
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#42124D
secondary
#448635
accent
#E54361
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42124D

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

Preview Lab → · Contrast checker → · Palette generator →

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