#401232#401232

#401232 is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.1% C 0.083 H 341.6°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#401232
RGBrgb(64, 18, 50)
HSLhsl(318, 56%, 16%)
HSVhsv(318, 72%, 25%)
CMYKcmyk(0%, 71.9%, 21.9%, 74.9%)
CIE-LABlab(14.13, 26.46, -9.78)
CIE-LCHlch(14.13, 28.21, 339.72°)
OKLaboklab(27.07% 0.0789 -0.0262)
OKLCHoklch(27.07% 0.083 341.6)
XYZxyz(2.9065, 1.7532, 3.2023)
Luminance0.0175 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401232 #124020
analogous
#371240 #401232 #40121B
triadic
#401232 #324012 #123240
tetradic
#401232 #403712 #124020 #121B40
square
#401232 #403712 #124020 #121B40
split-complementary
#401232 #1B4012 #124037
monochromatic
#180713 #180713 #401232 #701F57 #A02D7D

Accessibility & contrast

On white

15.55
#401232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401232
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401232#FFFFFF#000000##FFFFFF
##4012321.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151F33
Deuteranopia (green-blind)
#232731
Tritanopia (blue-blind)
#441320
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401232;
/* rgb */ color: rgb(64, 18, 50);
/* oklch */ color: oklch(27.1% 0.083 341.6);
Tailwind
colors: {
  custom: {
    50: '#77536a',
    500: '#401232',
    950: '#000000',
  },
}
SCSS
$custom: #401232;
$custom-light: #77536a;
$custom-dark: #000000;
JSON
{
  "hex": "#401232",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 318.261,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27069,
    "c": 0.08318,
    "h": 341.6
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#401232
secondary
#35794A
accent
#DF7648
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #401232

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

Preview Lab → · Contrast checker → · Palette generator →

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