#42124B#42124B

#42124B is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.108 H 320.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#42124B
RGBrgb(66, 18, 75)
HSLhsl(291, 61%, 18%)
HSVhsv(291, 76%, 29%)
CMYKcmyk(12%, 76%, 0%, 70.6%)
CIE-LABlab(16.00, 32.03, -24.43)
CIE-LCHlch(16.00, 40.28, 322.67°)
OKLaboklab(28.98% 0.084 -0.0683)
OKLCHoklch(28.98% 0.108 320.9)
XYZxyz(3.7329, 2.0991, 6.8638)
Luminance0.0210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42124B #1B4B12
analogous
#25124B #42124B #4B1237
triadic
#42124B #4B4212 #124B42
tetradic
#42124B #4B2512 #1B4B12 #12374B
square
#42124B #4B2512 #1B4B12 #12374B
split-complementary
#42124B #374B12 #124B25
monochromatic
#160619 #17061A #42124B #6D1E7C #992AAE

Accessibility & contrast

On white

14.79
#42124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42124B
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42124B#FFFFFF#000000##FFFFFF
##42124B1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01244D
Deuteranopia (green-blind)
#182A4A
Tritanopia (blue-blind)
#431C2D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42124b;
/* rgb */ color: rgb(66, 18, 75);
/* oklch */ color: oklch(29.0% 0.108 320.9);
Tailwind
colors: {
  custom: {
    50: '#79557d',
    500: '#42124b',
    950: '#000000',
  },
}
SCSS
$custom: #42124b;
$custom-light: #79557d;
$custom-dark: #000000;
JSON
{
  "hex": "#42124b",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 290.526,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28979,
    "c": 0.10827,
    "h": 320.9
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#42124B
secondary
#418435
accent
#E4435D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42124B

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

Preview Lab → · Contrast checker → · Palette generator →

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