#412D8A#412D8A

#412D8A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.147 H 287.1°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#412D8A
RGBrgb(65, 45, 138)
HSLhsl(253, 51%, 36%)
HSVhsv(253, 67%, 54%)
CMYKcmyk(52.9%, 67.4%, 0%, 45.9%)
CIE-LABlab(26.26, 34.24, -48.90)
CIE-LCHlch(26.26, 59.69, 305.00°)
OKLaboklab(37.9% 0.0431 -0.1403)
OKLCHoklch(37.9% 0.147 287.1)
XYZxyz(7.7045, 4.8352, 24.5672)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D8A #768A2D
analogous
#2D478A #412D8A #6F2D8A
triadic
#412D8A #8A412D #2D8A41
tetradic
#412D8A #8A2D47 #768A2D #2D8A6F
square
#412D8A #8A2D47 #768A2D #2D8A6F
split-complementary
#412D8A #8A6F2D #478A2D
monochromatic
#160F2E #2B1E5C #412D8A #573CB8 #7B65CD

Accessibility & contrast

On white

10.68
#412D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#412D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412D8A
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D8A#FFFFFF#000000##FFFFFF
##412D8A1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#254457
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412d8a;
/* rgb */ color: rgb(65, 45, 138);
/* oklch */ color: oklch(37.9% 0.147 287.1);
Tailwind
colors: {
  custom: {
    50: '#7d67ad',
    500: '#412d8a',
    950: '#000000',
  },
}
SCSS
$custom: #412d8a;
$custom-light: #7d67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#412d8a",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 252.903,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37899,
    "c": 0.14675,
    "h": 287.1
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#412D8A
secondary
#A1B360
accent
#DA4DBC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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