#400537#400537

#400537 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.106 H 335.6°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#400537
RGBrgb(64, 5, 55)
HSLhsl(309, 86%, 14%)
HSVhsv(309, 92%, 25%)
CMYKcmyk(0%, 92.2%, 14.1%, 74.9%)
CIE-LABlab(12.45, 32.88, -16.01)
CIE-LCHlch(12.45, 36.57, 334.03°)
OKLaboklab(25.94% 0.0964 -0.0438)
OKLCHoklch(25.94% 0.106 335.6)
XYZxyz(2.8583, 1.4746, 3.7478)
Luminance0.0147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400537 #05400E
analogous
#2B0540 #400537 #400519
triadic
#400537 #374005 #053740
tetradic
#400537 #402B05 #05400E #051940
square
#400537 #402B05 #05400E #051940
split-complementary
#400537 #194005 #05402B
monochromatic
#1C0218 #1C0218 #400537 #790968 #B20E99

Accessibility & contrast

On white

16.22
#400537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400537 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400537
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400537#FFFFFF#000000##FFFFFF
##4005371.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051B38
Deuteranopia (green-blind)
#1C2336
Tritanopia (blue-blind)
#440A1E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400537;
/* rgb */ color: rgb(64, 5, 55);
/* oklch */ color: oklch(25.9% 0.106 335.6);
Tailwind
colors: {
  custom: {
    50: '#784e6e',
    500: '#400537',
    950: '#000000',
  },
}
SCSS
$custom: #400537;
$custom-light: #784e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#400537",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 309.153,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25936,
    "c": 0.10586,
    "h": 335.6
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#400537
secondary
#20812F
accent
#FC4C2C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400537

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

Preview Lab → · Contrast checker → · Palette generator →

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