#412D87#412D87

#412D87 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.6% C 0.143 H 287.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#412D87
RGBrgb(65, 45, 135)
HSLhsl(253, 50%, 35%)
HSVhsv(253, 67%, 53%)
CMYKcmyk(51.9%, 66.7%, 0%, 47.1%)
CIE-LABlab(26.01, 33.29, -47.44)
CIE-LCHlch(26.01, 57.95, 305.06°)
OKLaboklab(37.64% 0.0434 -0.136)
OKLCHoklch(37.64% 0.143 287.7)
XYZxyz(7.4903, 4.7495, 23.4390)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D87 #73872D
analogous
#2D4687 #412D87 #6E2D87
triadic
#412D87 #87412D #2D8741
tetradic
#412D87 #872D46 #73872D #2D876E
square
#412D87 #872D46 #73872D #2D876E
split-complementary
#412D87 #876E2D #46872D
monochromatic
#150E2B #2B1E59 #412D87 #573CB5 #7A63CB

Accessibility & contrast

On white

10.77
#412D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#412D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412D87
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D87#FFFFFF#000000##FFFFFF
##412D871.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#284356
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412d87;
/* rgb */ color: rgb(65, 45, 135);
/* oklch */ color: oklch(37.6% 0.143 287.7);
Tailwind
colors: {
  custom: {
    50: '#7c67ab',
    500: '#412d87',
    950: '#000000',
  },
}
SCSS
$custom: #412d87;
$custom-light: #7c67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412d87",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 253.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37639,
    "c": 0.14277,
    "h": 287.7
  },
  "luminance": 0.0475
}

Semantic roles & 50–950 ramp

primary
#412D87
secondary
#9FB25E
accent
#DA4EBB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412D87

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

Preview Lab → · Contrast checker → · Palette generator →

#412D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva