#40153C#40153C

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

Color values

HEX#40153C
RGBrgb(64, 21, 60)
HSLhsl(306, 51%, 17%)
HSVhsv(306, 67%, 25%)
CMYKcmyk(0%, 67.2%, 6.2%, 74.9%)
CIE-LABlab(15.24, 26.77, -15.20)
CIE-LCHlch(15.24, 30.79, 330.41°)
OKLaboklab(28.05% 0.0763 -0.0416)
OKLCHoklch(28.05% 0.087 331.4)
XYZxyz(3.1981, 1.9528, 4.4826)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40153C #154019
analogous
#2F1540 #40153C #401527
triadic
#40153C #3C4015 #153C40
tetradic
#40153C #402F15 #154019 #152740
square
#40153C #402F15 #154019 #152740
split-complementary
#40153C #274015 #15402F
monochromatic
#170816 #170816 #40153C #6E2467 #9C3392

Accessibility & contrast

On white

15.10
#40153C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40153C
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40153C#FFFFFF#000000##FFFFFF
##40153C1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13223D
Deuteranopia (green-blind)
#21283B
Tritanopia (blue-blind)
#431926
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40153c;
/* rgb */ color: rgb(64, 21, 60);
/* oklch */ color: oklch(28.1% 0.087 331.4);
Tailwind
colors: {
  custom: {
    50: '#765572',
    500: '#40153c',
    950: '#000000',
  },
}
SCSS
$custom: #40153c;
$custom-light: #765572;
$custom-dark: #000000;
JSON
{
  "hex": "#40153c",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 60
  },
  "hsl": {
    "h": 305.581,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28051,
    "c": 0.08694,
    "h": 331.4
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#40153C
secondary
#39783F
accent
#DA5B4E
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40153C

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

Preview Lab → · Contrast checker → · Palette generator →

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