#40153D#40153D

#40153D is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.1% C 0.088 H 330.4°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#40153D
RGBrgb(64, 21, 61)
HSLhsl(304, 51%, 17%)
HSVhsv(304, 67%, 25%)
CMYKcmyk(0%, 67.2%, 4.7%, 74.9%)
CIE-LABlab(15.29, 26.98, -15.82)
CIE-LCHlch(15.29, 31.27, 329.62°)
OKLaboklab(28.11% 0.0765 -0.0434)
OKLCHoklch(28.11% 0.088 330.4)
XYZxyz(3.2248, 1.9635, 4.6231)
Luminance0.0196 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40153D #154018
analogous
#2E1540 #40153D #401528
triadic
#40153D #3D4015 #153D40
tetradic
#40153D #402E15 #154018 #152840
square
#40153D #402E15 #154018 #152840
split-complementary
#40153D #284015 #15402E
monochromatic
#170816 #170816 #40153D #6E2469 #9C3395

Accessibility & contrast

On white

15.08
#40153D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#40153D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40153D
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40153D#FFFFFF#000000##FFFFFF
##40153D1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12223E
Deuteranopia (green-blind)
#20283C
Tritanopia (blue-blind)
#431926
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40153d;
/* rgb */ color: rgb(64, 21, 61);
/* oklch */ color: oklch(28.1% 0.088 330.4);
Tailwind
colors: {
  custom: {
    50: '#765572',
    500: '#40153d',
    950: '#000000',
  },
}
SCSS
$custom: #40153d;
$custom-light: #765572;
$custom-dark: #000000;
JSON
{
  "hex": "#40153d",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 61
  },
  "hsl": {
    "h": 304.186,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28111,
    "c": 0.08792,
    "h": 330.4
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#40153D
secondary
#39783D
accent
#DA584E
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40153D

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

Preview Lab → · Contrast checker → · Palette generator →

#40153D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva