#401231#401231

#401231 is a dark, moderate pink. Relative luminance 0.017; OKLCH L 27.0% C 0.082 H 342.8°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#401231
RGBrgb(64, 18, 49)
HSLhsl(320, 56%, 16%)
HSVhsv(320, 72%, 25%)
CMYKcmyk(0%, 71.9%, 23.4%, 74.9%)
CIE-LABlab(14.09, 26.29, -9.13)
CIE-LCHlch(14.09, 27.83, 340.85°)
OKLaboklab(27.02% 0.0787 -0.0244)
OKLCHoklch(27.02% 0.082 342.8)
XYZxyz(2.8851, 1.7446, 3.0899)
Luminance0.0174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401231 #124021
analogous
#381240 #401231 #40121A
triadic
#401231 #314012 #123140
tetradic
#401231 #403812 #124021 #121A40
square
#401231 #403812 #124021 #121A40
split-complementary
#401231 #1A4012 #124038
monochromatic
#180712 #180712 #401231 #701F56 #A02D7A

Accessibility & contrast

On white

15.57
#401231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#401231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401231
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401231#FFFFFF#000000##FFFFFF
##4012311.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161F32
Deuteranopia (green-blind)
#232730
Tritanopia (blue-blind)
#44121F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401231;
/* rgb */ color: rgb(64, 18, 49);
/* oklch */ color: oklch(27.0% 0.082 342.8);
Tailwind
colors: {
  custom: {
    50: '#775369',
    500: '#401231',
    950: '#000000',
  },
}
SCSS
$custom: #401231;
$custom-light: #775369;
$custom-dark: #000000;
JSON
{
  "hex": "#401231",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 319.565,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27017,
    "c": 0.08238,
    "h": 342.8
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#401231
secondary
#35794B
accent
#DF7A48
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #401231

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

Preview Lab → · Contrast checker → · Palette generator →

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