#40063F#40063F

#40063F is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.111 H 328.9°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#40063F
RGBrgb(64, 6, 63)
HSLhsl(301, 83%, 14%)
HSVhsv(301, 91%, 25%)
CMYKcmyk(0%, 90.6%, 1.6%, 74.9%)
CIE-LABlab(13.10, 33.90, -20.69)
CIE-LCHlch(13.10, 39.72, 328.60°)
OKLaboklab(26.57% 0.0952 -0.0573)
OKLCHoklch(26.57% 0.111 328.9)
XYZxyz(3.0767, 1.5794, 4.8445)
Luminance0.0158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40063F #064007
analogous
#240640 #40063F #400622
triadic
#40063F #3F4006 #063F40
tetradic
#40063F #402406 #064007 #062240
square
#40063F #402406 #064007 #062240
split-complementary
#40063F #224006 #064024
monochromatic
#1C031C #1C031C #40063F #780B76 #B010AD

Accessibility & contrast

On white

15.96
#40063F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#40063F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40063F
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40063F#FFFFFF#000000##FFFFFF
##40063F1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#18243E
Tritanopia (blue-blind)
#431023
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40063f;
/* rgb */ color: rgb(64, 6, 63);
/* oklch */ color: oklch(26.6% 0.111 328.9);
Tailwind
colors: {
  custom: {
    50: '#774f74',
    500: '#40063f',
    950: '#000000',
  },
}
SCSS
$custom: #40063f;
$custom-light: #774f74;
$custom-dark: #000000;
JSON
{
  "hex": "#40063f",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 63
  },
  "hsl": {
    "h": 301.034,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26573,
    "c": 0.11117,
    "h": 328.9
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#40063F
secondary
#228024
accent
#F9322F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40063F

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

Preview Lab → · Contrast checker → · Palette generator →

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