#40153E#40153E

#40153E is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.2% C 0.089 H 329.5°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#40153E
RGBrgb(64, 21, 62)
HSLhsl(303, 51%, 17%)
HSVhsv(303, 67%, 25%)
CMYKcmyk(0%, 67.2%, 3.1%, 74.9%)
CIE-LABlab(15.35, 27.18, -16.43)
CIE-LCHlch(15.35, 31.76, 328.85°)
OKLaboklab(28.17% 0.0766 -0.0452)
OKLCHoklch(28.17% 0.089 329.5)
XYZxyz(3.2520, 1.9743, 4.7663)
Luminance0.0197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40153E #154017
analogous
#2D1540 #40153E #401529
triadic
#40153E #3E4015 #153E40
tetradic
#40153E #402D15 #154017 #152940
square
#40153E #402D15 #154017 #152940
split-complementary
#40153E #294015 #15402D
monochromatic
#170816 #170816 #40153E #6E246B #9C3397

Accessibility & contrast

On white

15.06
#40153E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40153E
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40153E#FFFFFF#000000##FFFFFF
##40153E1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12233F
Deuteranopia (green-blind)
#20283D
Tritanopia (blue-blind)
#421A27
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40153e;
/* rgb */ color: rgb(64, 21, 62);
/* oklch */ color: oklch(28.2% 0.089 329.5);
Tailwind
colors: {
  custom: {
    50: '#765673',
    500: '#40153e',
    950: '#000000',
  },
}
SCSS
$custom: #40153e;
$custom-light: #765673;
$custom-dark: #000000;
JSON
{
  "hex": "#40153e",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 62
  },
  "hsl": {
    "h": 302.791,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28172,
    "c": 0.08892,
    "h": 329.5
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#40153E
secondary
#39783C
accent
#DA544E
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40153E

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

Preview Lab → · Contrast checker → · Palette generator →

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