#400833#400833

#400833 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 26.0% C 0.099 H 339.4°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#400833
RGBrgb(64, 8, 51)
HSLhsl(314, 78%, 14%)
HSVhsv(314, 88%, 25%)
CMYKcmyk(0%, 87.5%, 20.3%, 74.9%)
CIE-LABlab(12.63, 31.01, -12.84)
CIE-LCHlch(12.63, 33.56, 337.51°)
OKLaboklab(25.99% 0.0924 -0.0347)
OKLCHoklch(25.99% 0.099 339.4)
XYZxyz(2.7988, 1.5030, 3.2740)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400833 #084015
analogous
#310840 #400833 #400817
triadic
#400833 #334008 #083340
tetradic
#400833 #403108 #084015 #081740
square
#400833 #403108 #084015 #081740
split-complementary
#400833 #174008 #084031
monochromatic
#1B0316 #1B0316 #400833 #760F5E #AD168A

Accessibility & contrast

On white

16.15
#400833 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400833 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400833
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400833#FFFFFF#000000##FFFFFF
##4008331.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1B34
Deuteranopia (green-blind)
#1F2432
Tritanopia (blue-blind)
#440A1D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400833;
/* rgb */ color: rgb(64, 8, 51);
/* oklch */ color: oklch(26.0% 0.099 339.4);
Tailwind
colors: {
  custom: {
    50: '#774f6a',
    500: '#400833',
    950: '#000000',
  },
}
SCSS
$custom: #400833;
$custom-light: #774f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#400833",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 51
  },
  "hsl": {
    "h": 313.929,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2599,
    "c": 0.09869,
    "h": 339.4
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#400833
secondary
#257E3A
accent
#F46034
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400833

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

Preview Lab → · Contrast checker → · Palette generator →

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