#400C43#400C43

#400C43 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.107 H 325.6°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#400C43
RGBrgb(64, 12, 67)
HSLhsl(297, 70%, 15%)
HSVhsv(297, 82%, 26%)
CMYKcmyk(4.5%, 82.1%, 0%, 73.7%)
CIE-LABlab(14.16, 32.42, -21.82)
CIE-LCHlch(14.16, 39.08, 326.05°)
OKLaboklab(27.42% 0.0887 -0.0607)
OKLCHoklch(27.42% 0.107 325.6)
XYZxyz(3.2589, 1.7584, 5.4769)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C43 #0F430C
analogous
#240C43 #400C43 #430C2A
triadic
#400C43 #43400C #0C4340
tetradic
#400C43 #43240C #0F430C #0C2A43
square
#400C43 #43240C #0F430C #0C2A43
split-complementary
#400C43 #2A430C #0C4324
monochromatic
#19051A #19051A #400C43 #721577 #A31FAB

Accessibility & contrast

On white

15.54
#400C43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400C43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C43
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C43#FFFFFF#000000##FFFFFF
##400C431.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012045
Deuteranopia (green-blind)
#182642
Tritanopia (blue-blind)
#421527
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400c43;
/* rgb */ color: rgb(64, 12, 67);
/* oklch */ color: oklch(27.4% 0.107 325.6);
Tailwind
colors: {
  custom: {
    50: '#775177',
    500: '#400c43',
    950: '#000000',
  },
}
SCSS
$custom: #400c43;
$custom-light: #775177;
$custom-dark: #000000;
JSON
{
  "hex": "#400c43",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 67
  },
  "hsl": {
    "h": 296.727,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27416,
    "c": 0.10748,
    "h": 325.6
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#400C43
secondary
#307F2C
accent
#EC3B45
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400C43

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

Preview Lab → · Contrast checker → · Palette generator →

#400C43 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva