#40205A#40205A

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

Color values

HEX#40205A
RGBrgb(64, 32, 90)
HSLhsl(273, 48%, 24%)
HSVhsv(273, 64%, 35%)
CMYKcmyk(28.9%, 64.4%, 0%, 64.7%)
CIE-LABlab(19.48, 27.63, -29.03)
CIE-LCHlch(19.48, 40.07, 313.59°)
OKLaboklab(31.77% 0.0616 -0.0819)
OKLCHoklch(31.77% 0.102 306.9)
XYZxyz(4.4759, 2.8612, 9.9874)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40205A #3A5A20
analogous
#23205A #40205A #5A2057
triadic
#40205A #5A4020 #205A40
tetradic
#40205A #5A2320 #3A5A20 #20575A
square
#40205A #5A2320 #3A5A20 #20575A
split-complementary
#40205A #575A20 #205A23
monochromatic
#100817 #20102D #40205A #603087 #8040B4

Accessibility & contrast

On white

13.36
#40205A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#40205A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40205A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40205A#FFFFFF#000000##FFFFFF
##40205A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072E5C
Deuteranopia (green-blind)
#162F59
Tritanopia (blue-blind)
#3C2B39
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40205a;
/* rgb */ color: rgb(64, 32, 90);
/* oklch */ color: oklch(31.8% 0.102 306.9);
Tailwind
colors: {
  custom: {
    50: '#775d89',
    500: '#40205a',
    950: '#000000',
  },
}
SCSS
$custom: #40205a;
$custom-light: #775d89;
$custom-dark: #000000;
JSON
{
  "hex": "#40205a",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 90
  },
  "hsl": {
    "h": 273.103,
    "s": 47.541,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31768,
    "c": 0.10248,
    "h": 306.9
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#40205A
secondary
#678E47
accent
#D7518D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #40205A

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

Preview Lab → · Contrast checker → · Palette generator →

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