#401138#401138

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

Color values

HEX#401138
RGBrgb(64, 17, 56)
HSLhsl(310, 58%, 16%)
HSVhsv(310, 73%, 25%)
CMYKcmyk(0%, 73.4%, 12.5%, 74.9%)
CIE-LABlab(14.27, 28.05, -13.87)
CIE-LCHlch(14.27, 31.29, 333.68°)
OKLaboklab(27.27% 0.0817 -0.0378)
OKLCHoklch(27.27% 0.09 335.2)
XYZxyz(3.0286, 1.7767, 3.9240)
Luminance0.0178 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401138 #114019
analogous
#301140 #401138 #401120
triadic
#401138 #384011 #113840
tetradic
#401138 #403011 #114019 #112040
square
#401138 #403011 #114019 #112040
split-complementary
#401138 #204011 #114030
monochromatic
#180615 #180615 #401138 #701E62 #A12B8D

Accessibility & contrast

On white

15.50
#401138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401138
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401138#FFFFFF#000000##FFFFFF
##4011381.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112039
Deuteranopia (green-blind)
#202737
Tritanopia (blue-blind)
#431422
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401138;
/* rgb */ color: rgb(64, 17, 56);
/* oklch */ color: oklch(27.3% 0.090 335.2);
Tailwind
colors: {
  custom: {
    50: '#77536e',
    500: '#401138',
    950: '#000000',
  },
}
SCSS
$custom: #401138;
$custom-light: #77536e;
$custom-dark: #000000;
JSON
{
  "hex": "#401138",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 310.213,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2727,
    "c": 0.08998,
    "h": 335.2
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#401138
secondary
#33793F
accent
#E16147
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #401138

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

Preview Lab → · Contrast checker → · Palette generator →

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