#412D8F#412D8F

#412D8F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.153 H 286.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#412D8F
RGBrgb(65, 45, 143)
HSLhsl(252, 52%, 37%)
HSVhsv(252, 69%, 56%)
CMYKcmyk(54.5%, 68.5%, 0%, 43.9%)
CIE-LABlab(26.69, 35.81, -51.30)
CIE-LCHlch(26.69, 62.56, 304.92°)
OKLaboklab(38.34% 0.0424 -0.1473)
OKLCHoklch(38.34% 0.153 286)
XYZxyz(8.0748, 4.9833, 26.5177)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D8F #7B8F2D
analogous
#2D4A8F #412D8F #722D8F
triadic
#412D8F #8F412D #2D8F41
tetradic
#412D8F #8F2D4A #7B8F2D #2D8F72
square
#412D8F #8F2D4A #7B8F2D #2D8F72
split-complementary
#412D8F #8F722D #4A8F2D
monochromatic
#171032 #2C1E60 #412D8F #563CBE #7C67CF

Accessibility & contrast

On white

10.52
#412D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#412D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412D8F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D8F#FFFFFF#000000##FFFFFF
##412D8F1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#21465A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412d8f;
/* rgb */ color: rgb(65, 45, 143);
/* oklch */ color: oklch(38.3% 0.153 286.0);
Tailwind
colors: {
  custom: {
    50: '#7e67b1',
    500: '#412d8f',
    950: '#000000',
  },
}
SCSS
$custom: #412d8f;
$custom-light: #7e67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#412d8f",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 252.245,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3834,
    "c": 0.15332,
    "h": 286
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#412D8F
secondary
#A5B662
accent
#DC4CBE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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