#42124F#42124F

#42124F is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.3% C 0.112 H 318.2°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#42124F
RGBrgb(66, 18, 79)
HSLhsl(287, 63%, 19%)
HSVhsv(287, 77%, 31%)
CMYKcmyk(16.5%, 77.2%, 0%, 69%)
CIE-LABlab(16.28, 32.92, -26.71)
CIE-LCHlch(16.28, 42.40, 320.94°)
OKLaboklab(29.27% 0.0838 -0.075)
OKLCHoklch(29.27% 0.112 318.2)
XYZxyz(3.8742, 2.1555, 7.6076)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42124F #1F4F12
analogous
#24124F #42124F #4F123E
triadic
#42124F #4F4212 #124F42
tetradic
#42124F #4F2412 #1F4F12 #123E4F
square
#42124F #4F2412 #1F4F12 #123E4F
split-complementary
#42124F #3E4F12 #124F24
monochromatic
#150619 #18071D #42124F #6C1D81 #9529B3

Accessibility & contrast

On white

14.68
#42124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42124F
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42124F#FFFFFF#000000##FFFFFF
##42124F1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#152A4E
Tritanopia (blue-blind)
#421E2F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #42124f;
/* rgb */ color: rgb(66, 18, 79);
/* oklch */ color: oklch(29.3% 0.112 318.2);
Tailwind
colors: {
  custom: {
    50: '#795581',
    500: '#42124f',
    950: '#000000',
  },
}
SCSS
$custom: #42124f;
$custom-light: #795581;
$custom-dark: #000000;
JSON
{
  "hex": "#42124f",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 287.213,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29274,
    "c": 0.11243,
    "h": 318.2
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#42124F
secondary
#478835
accent
#E64265
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42124F

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

Preview Lab → · Contrast checker → · Palette generator →

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