#400F43#400F43

#400F43 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.103 H 325.5°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#400F43
RGBrgb(64, 15, 67)
HSLhsl(297, 63%, 16%)
HSVhsv(297, 78%, 26%)
CMYKcmyk(4.5%, 77.6%, 0%, 73.7%)
CIE-LABlab(14.61, 31.15, -21.11)
CIE-LCHlch(14.61, 37.64, 325.87°)
OKLaboklab(27.73% 0.0852 -0.0587)
OKLCHoklch(27.73% 0.103 325.5)
XYZxyz(3.2982, 1.8371, 5.4900)
Luminance0.0184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F43 #12430F
analogous
#260F43 #400F43 #430F2C
triadic
#400F43 #43400F #0F4340
tetradic
#400F43 #43260F #12430F #0F2C43
square
#400F43 #43260F #12430F #0F2C43
split-complementary
#400F43 #2C430F #0F4326
monochromatic
#180619 #180619 #400F43 #701A75 #A025A7

Accessibility & contrast

On white

15.36
#400F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#400F43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F43
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F43#FFFFFF#000000##FFFFFF
##400F431.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042144
Deuteranopia (green-blind)
#1A2742
Tritanopia (blue-blind)
#421727
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400f43;
/* rgb */ color: rgb(64, 15, 67);
/* oklch */ color: oklch(27.7% 0.103 325.5);
Tailwind
colors: {
  custom: {
    50: '#775377',
    500: '#400f43',
    950: '#000000',
  },
}
SCSS
$custom: #400f43;
$custom-light: #775377;
$custom-dark: #000000;
JSON
{
  "hex": "#400f43",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 67
  },
  "hsl": {
    "h": 296.538,
    "s": 63.415,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27734,
    "c": 0.10345,
    "h": 325.5
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#400F43
secondary
#357D30
accent
#E6414B
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F43

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

Preview Lab → · Contrast checker → · Palette generator →

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