#401237#401237

#401237 is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.3% C 0.087 H 336.2°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#401237
RGBrgb(64, 18, 55)
HSLhsl(312, 56%, 16%)
HSVhsv(312, 72%, 25%)
CMYKcmyk(0%, 71.9%, 14.1%, 74.9%)
CIE-LABlab(14.39, 27.36, -12.97)
CIE-LCHlch(14.39, 30.28, 334.65°)
OKLaboklab(27.34% 0.08 -0.0352)
OKLCHoklch(27.34% 0.087 336.2)
XYZxyz(3.0203, 1.7987, 3.8018)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401237 #12401B
analogous
#321240 #401237 #401220
triadic
#401237 #374012 #123740
tetradic
#401237 #403212 #12401B #122040
square
#401237 #403212 #12401B #122040
split-complementary
#401237 #204012 #124032
monochromatic
#180715 #180715 #401237 #701F60 #A02D89

Accessibility & contrast

On white

15.45
#401237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401237
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401237#FFFFFF#000000##FFFFFF
##4012371.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132038
Deuteranopia (green-blind)
#212736
Tritanopia (blue-blind)
#441522
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401237;
/* rgb */ color: rgb(64, 18, 55);
/* oklch */ color: oklch(27.3% 0.087 336.2);
Tailwind
colors: {
  custom: {
    50: '#77546e',
    500: '#401237',
    950: '#000000',
  },
}
SCSS
$custom: #401237;
$custom-light: #77546e;
$custom-dark: #000000;
JSON
{
  "hex": "#401237",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 311.739,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27343,
    "c": 0.08742,
    "h": 336.2
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#401237
secondary
#357942
accent
#DF6648
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090307
muted
#7B787A

Preview Lab

Preview with #401237

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

Preview Lab → · Contrast checker → · Palette generator →

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