#401239#401239

#401239 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.089 H 334.2°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#401239
RGBrgb(64, 18, 57)
HSLhsl(309, 56%, 16%)
HSVhsv(309, 72%, 25%)
CMYKcmyk(0%, 71.9%, 10.9%, 74.9%)
CIE-LABlab(14.50, 27.74, -14.22)
CIE-LCHlch(14.50, 31.17, 332.86°)
OKLaboklab(27.46% 0.0804 -0.0388)
OKLCHoklch(27.46% 0.089 334.2)
XYZxyz(3.0692, 1.8183, 4.0594)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401239 #124019
analogous
#301240 #401239 #401222
triadic
#401239 #394012 #123940
tetradic
#401239 #403012 #124019 #122240
square
#401239 #403012 #124019 #122240
split-complementary
#401239 #224012 #124030
monochromatic
#180715 #180715 #401239 #701F64 #A02D8E

Accessibility & contrast

On white

15.40
#401239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#401239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401239
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401239#FFFFFF#000000##FFFFFF
##4012391.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11203A
Deuteranopia (green-blind)
#202738
Tritanopia (blue-blind)
#431523
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401239;
/* rgb */ color: rgb(64, 18, 57);
/* oklch */ color: oklch(27.5% 0.089 334.2);
Tailwind
colors: {
  custom: {
    50: '#77546f',
    500: '#401239',
    950: '#000000',
  },
}
SCSS
$custom: #401239;
$custom-light: #77546f;
$custom-dark: #000000;
JSON
{
  "hex": "#401239",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 309.13,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27459,
    "c": 0.08924,
    "h": 334.2
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#401239
secondary
#35793F
accent
#DF5F48
background
#F7F4F6
surface
#EDE8EC
border
#C8C4C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #401239

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

Preview Lab → · Contrast checker → · Palette generator →

#401239 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva