#40205E#40205E

#40205E is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.1% C 0.108 H 304.8°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#40205E
RGBrgb(64, 32, 94)
HSLhsl(271, 49%, 25%)
HSVhsv(271, 66%, 37%)
CMYKcmyk(31.9%, 66%, 0%, 63.1%)
CIE-LABlab(19.77, 28.72, -31.22)
CIE-LCHlch(19.77, 42.42, 312.60°)
OKLaboklab(32.07% 0.0615 -0.0883)
OKLCHoklch(32.07% 0.108 304.8)
XYZxyz(4.6508, 2.9312, 10.9083)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40205E #3E5E20
analogous
#21205E #40205E #5E205D
triadic
#40205E #5E4020 #205E40
tetradic
#40205E #5E2120 #3E5E20 #205D5E
square
#40205E #5E2120 #3E5E20 #205D5E
split-complementary
#40205E #5D5E20 #205E21
monochromatic
#100817 #211030 #40205E #5F308C #7E3FB9

Accessibility & contrast

On white

13.24
#40205E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#40205E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40205E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40205E#FFFFFF#000000##FFFFFF
##40205E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#11305D
Tritanopia (blue-blind)
#3B2D3B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40205e;
/* rgb */ color: rgb(64, 32, 94);
/* oklch */ color: oklch(32.1% 0.108 304.8);
Tailwind
colors: {
  custom: {
    50: '#775d8c',
    500: '#40205e',
    950: '#000000',
  },
}
SCSS
$custom: #40205e;
$custom-light: #775d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#40205e",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 94
  },
  "hsl": {
    "h": 270.968,
    "s": 49.206,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32068,
    "c": 0.10763,
    "h": 304.8
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#40205E
secondary
#6C9247
accent
#D94F92
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #40205E

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

Preview Lab → · Contrast checker → · Palette generator →

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