#401230#401230

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

Color values

HEX#401230
RGBrgb(64, 18, 48)
HSLhsl(321, 56%, 16%)
HSVhsv(321, 72%, 25%)
CMYKcmyk(0%, 71.9%, 25%, 74.9%)
CIE-LABlab(14.04, 26.12, -8.48)
CIE-LCHlch(14.04, 27.46, 342.01°)
OKLaboklab(26.97% 0.0784 -0.0226)
OKLCHoklch(26.97% 0.082 343.9)
XYZxyz(2.8642, 1.7363, 2.9800)
Luminance0.0174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401230 #124022
analogous
#391240 #401230 #401219
triadic
#401230 #304012 #123040
tetradic
#401230 #403912 #124022 #121940
square
#401230 #403912 #124022 #121940
split-complementary
#401230 #194012 #124039
monochromatic
#180712 #180712 #401230 #701F54 #A02D78

Accessibility & contrast

On white

15.59
#401230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401230
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401230#FFFFFF#000000##FFFFFF
##4012301.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401230;
/* rgb */ color: rgb(64, 18, 48);
/* oklch */ color: oklch(27.0% 0.082 343.9);
Tailwind
colors: {
  custom: {
    50: '#775368',
    500: '#401230',
    950: '#000000',
  },
}
SCSS
$custom: #401230;
$custom-light: #775368;
$custom-dark: #000000;
JSON
{
  "hex": "#401230",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 48
  },
  "hsl": {
    "h": 320.87,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26966,
    "c": 0.0816,
    "h": 343.9
  },
  "luminance": 0.01736
}

Semantic roles & 50–950 ramp

primary
#401230
secondary
#35794D
accent
#DF7D48
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #401230

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

Preview Lab → · Contrast checker → · Palette generator →

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