#40143F#40143F

#40143F is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.092 H 328.6°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#40143F
RGBrgb(64, 20, 63)
HSLhsl(301, 52%, 16%)
HSVhsv(301, 69%, 25%)
CMYKcmyk(0%, 68.8%, 1.6%, 74.9%)
CIE-LABlab(15.22, 27.92, -17.34)
CIE-LCHlch(15.22, 32.86, 328.15°)
OKLaboklab(28.09% 0.0782 -0.0478)
OKLCHoklch(28.09% 0.092 328.6)
XYZxyz(3.2617, 1.9494, 4.9061)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40143F #144015
analogous
#2B1440 #40143F #401429
triadic
#40143F #3F4014 #143F40
tetradic
#40143F #402B14 #144015 #142940
square
#40143F #402B14 #144015 #142940
split-complementary
#40143F #294014 #14402B
monochromatic
#170717 #170717 #40143F #6F236D #9D319B

Accessibility & contrast

On white

15.11
#40143F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#40143F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40143F
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40143F#FFFFFF#000000##FFFFFF
##40143F1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102240
Deuteranopia (green-blind)
#1F283E
Tritanopia (blue-blind)
#421927
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40143f;
/* rgb */ color: rgb(64, 20, 63);
/* oklch */ color: oklch(28.1% 0.092 328.6);
Tailwind
colors: {
  custom: {
    50: '#775574',
    500: '#40143f',
    950: '#000000',
  },
}
SCSS
$custom: #40143f;
$custom-light: #775574;
$custom-dark: #000000;
JSON
{
  "hex": "#40143f",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 63
  },
  "hsl": {
    "h": 301.364,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.28094,
    "c": 0.09165,
    "h": 328.6
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#40143F
secondary
#387839
accent
#DC4F4C
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40143F

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

Preview Lab → · Contrast checker → · Palette generator →

#40143F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva