#42124A#42124A

#42124A is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.107 H 321.6°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#42124A
RGBrgb(66, 18, 74)
HSLhsl(291, 61%, 18%)
HSVhsv(291, 76%, 29%)
CMYKcmyk(10.8%, 75.7%, 0%, 71%)
CIE-LABlab(15.93, 31.81, -23.85)
CIE-LCHlch(15.93, 39.76, 323.14°)
OKLaboklab(28.91% 0.0841 -0.0666)
OKLCHoklch(28.91% 0.107 321.6)
XYZxyz(3.6990, 2.0855, 6.6849)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42124A #1A4A12
analogous
#26124A #42124A #4A1236
triadic
#42124A #4A4212 #124A42
tetradic
#42124A #4A2612 #1A4A12 #12364A
square
#42124A #4A2612 #1A4A12 #12364A
split-complementary
#42124A #364A12 #124A26
monochromatic
#160619 #160619 #42124A #6E1E7B #9A2AAC

Accessibility & contrast

On white

14.82
#42124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#42124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42124A
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42124A#FFFFFF#000000##FFFFFF
##42124A1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02244C
Deuteranopia (green-blind)
#192949
Tritanopia (blue-blind)
#431C2C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42124a;
/* rgb */ color: rgb(66, 18, 74);
/* oklch */ color: oklch(28.9% 0.107 321.6);
Tailwind
colors: {
  custom: {
    50: '#79557d',
    500: '#42124a',
    950: '#000000',
  },
}
SCSS
$custom: #42124a;
$custom-light: #79557d;
$custom-dark: #000000;
JSON
{
  "hex": "#42124a",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 291.429,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28908,
    "c": 0.10725,
    "h": 321.6
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#42124A
secondary
#408335
accent
#E4445B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #42124A

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

Preview Lab → · Contrast checker → · Palette generator →

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