#40205B#40205B

#40205B is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.8% C 0.104 H 306.4°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#40205B
RGBrgb(64, 32, 91)
HSLhsl(273, 48%, 24%)
HSVhsv(273, 65%, 36%)
CMYKcmyk(29.7%, 64.8%, 0%, 64.3%)
CIE-LABlab(19.55, 27.90, -29.58)
CIE-LCHlch(19.55, 40.66, 313.33°)
OKLaboklab(31.84% 0.0616 -0.0835)
OKLCHoklch(31.84% 0.104 306.4)
XYZxyz(4.5188, 2.8784, 10.2130)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40205B #3B5B20
analogous
#23205B #40205B #5B2059
triadic
#40205B #5B4020 #205B40
tetradic
#40205B #5B2320 #3B5B20 #20595B
square
#40205B #5B2320 #3B5B20 #20595B
split-complementary
#40205B #595B20 #205B23
monochromatic
#100817 #20102E #40205B #603088 #8040B6

Accessibility & contrast

On white

13.33
#40205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#40205B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40205B
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40205B#FFFFFF#000000##FFFFFF
##40205B1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5D
Deuteranopia (green-blind)
#15305A
Tritanopia (blue-blind)
#3C2C3A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40205b;
/* rgb */ color: rgb(64, 32, 91);
/* oklch */ color: oklch(31.8% 0.104 306.4);
Tailwind
colors: {
  custom: {
    50: '#775d8a',
    500: '#40205b',
    950: '#000000',
  },
}
SCSS
$custom: #40205b;
$custom-light: #775d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#40205b",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 272.542,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31842,
    "c": 0.10377,
    "h": 306.4
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#40205B
secondary
#688F47
accent
#D8508E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #40205B

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

Preview Lab → · Contrast checker → · Palette generator →

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