#40205C#40205C

#40205C is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.9% C 0.105 H 305.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#40205C
RGBrgb(64, 32, 92)
HSLhsl(272, 48%, 24%)
HSVhsv(272, 65%, 36%)
CMYKcmyk(30.4%, 65.2%, 0%, 63.9%)
CIE-LABlab(19.62, 28.17, -30.13)
CIE-LCHlch(19.62, 41.25, 313.08°)
OKLaboklab(31.92% 0.0615 -0.0851)
OKLCHoklch(31.92% 0.105 305.9)
XYZxyz(4.5622, 2.8958, 10.4417)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40205C #3C5C20
analogous
#22205C #40205C #5C205A
triadic
#40205C #5C4020 #205C40
tetradic
#40205C #5C2220 #3C5C20 #205A5C
square
#40205C #5C2220 #3C5C20 #205A5C
split-complementary
#40205C #5A5C20 #205C22
monochromatic
#100817 #20102F #40205C #603089 #7F40B7

Accessibility & contrast

On white

13.30
#40205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40205C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40205C#FFFFFF#000000##FFFFFF
##40205C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5E
Deuteranopia (green-blind)
#14305B
Tritanopia (blue-blind)
#3B2C3A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40205c;
/* rgb */ color: rgb(64, 32, 92);
/* oklch */ color: oklch(31.9% 0.105 305.9);
Tailwind
colors: {
  custom: {
    50: '#775d8a',
    500: '#40205c',
    950: '#000000',
  },
}
SCSS
$custom: #40205c;
$custom-light: #775d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#40205c",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 272,
    "s": 48.387,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31917,
    "c": 0.10505,
    "h": 305.9
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#40205C
secondary
#699047
accent
#D8508F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #40205C

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

Preview Lab → · Contrast checker → · Palette generator →

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