#400940#400940

#400940 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.9% C 0.108 H 328.1°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#400940
RGBrgb(64, 9, 64)
HSLhsl(300, 75%, 14%)
HSVhsv(300, 86%, 25%)
CMYKcmyk(0%, 85.9%, 0%, 74.9%)
CIE-LABlab(13.57, 32.95, -20.66)
CIE-LCHlch(13.57, 38.89, 327.91°)
OKLaboklab(26.92% 0.092 -0.0573)
OKLCHoklch(26.92% 0.108 328.1)
XYZxyz(3.1374, 1.6558, 5.0038)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400940 #094009
analogous
#250940 #400940 #400925
triadic
#400940 #404009 #094040
tetradic
#400940 #402509 #094009 #092540
square
#400940 #402509 #094009 #092540
split-complementary
#400940 #254009 #094025
monochromatic
#1B041B #1B041B #400940 #761176 #AB18AB

Accessibility & contrast

On white

15.78
#400940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400940
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400940#FFFFFF#000000##FFFFFF
##4009401.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#19253F
Tritanopia (blue-blind)
#421224
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400940;
/* rgb */ color: rgb(64, 9, 64);
/* oklch */ color: oklch(26.9% 0.108 328.1);
Tailwind
colors: {
  custom: {
    50: '#775075',
    500: '#400940',
    950: '#000000',
  },
}
SCSS
$custom: #400940;
$custom-light: #775075;
$custom-dark: #000000;
JSON
{
  "hex": "#400940",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.26924,
    "c": 0.10835,
    "h": 328.1
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#400940
secondary
#277E27
accent
#F23636
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400940

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

Preview Lab → · Contrast checker → · Palette generator →

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