#401238#401238

#401238 is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.4% C 0.088 H 335.2°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#401238
RGBrgb(64, 18, 56)
HSLhsl(310, 56%, 16%)
HSVhsv(310, 72%, 25%)
CMYKcmyk(0%, 71.9%, 12.5%, 74.9%)
CIE-LABlab(14.45, 27.55, -13.60)
CIE-LCHlch(14.45, 30.72, 333.74°)
OKLaboklab(27.4% 0.0802 -0.037)
OKLCHoklch(27.4% 0.088 335.2)
XYZxyz(3.0445, 1.8084, 3.9293)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401238 #12401A
analogous
#311240 #401238 #401221
triadic
#401238 #384012 #123840
tetradic
#401238 #403112 #12401A #122140
square
#401238 #403112 #12401A #122140
split-complementary
#401238 #214012 #124031
monochromatic
#180715 #180715 #401238 #701F62 #A02D8C

Accessibility & contrast

On white

15.42
#401238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401238
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401238#FFFFFF#000000##FFFFFF
##4012381.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122039
Deuteranopia (green-blind)
#212737
Tritanopia (blue-blind)
#431523
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401238;
/* rgb */ color: rgb(64, 18, 56);
/* oklch */ color: oklch(27.4% 0.088 335.2);
Tailwind
colors: {
  custom: {
    50: '#77546e',
    500: '#401238',
    950: '#000000',
  },
}
SCSS
$custom: #401238;
$custom-light: #77546e;
$custom-dark: #000000;
JSON
{
  "hex": "#401238",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 310.435,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27401,
    "c": 0.08833,
    "h": 335.2
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#401238
secondary
#357941
accent
#DF6348
background
#F7F4F6
surface
#EDE8EC
border
#C8C4C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #401238

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

Preview Lab → · Contrast checker → · Palette generator →

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