#412C81#412C81

#412C81 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.136 H 289.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#412C81
RGBrgb(65, 44, 129)
HSLhsl(255, 49%, 34%)
HSVhsv(255, 66%, 51%)
CMYKcmyk(49.6%, 65.9%, 0%, 49.4%)
CIE-LABlab(25.29, 32.03, -44.85)
CIE-LCHlch(25.29, 55.11, 305.53°)
OKLaboklab(36.96% 0.0452 -0.1284)
OKLCHoklch(36.96% 0.136 289.4)
XYZxyz(7.0420, 4.5099, 21.2641)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C81 #6C812C
analogous
#2C4281 #412C81 #6C2C81
triadic
#412C81 #81412C #2C8141
tetradic
#412C81 #812C42 #6C812C #2C816C
square
#412C81 #812C42 #6C812C #2C816C
split-complementary
#412C81 #816C2C #42812C
monochromatic
#130D26 #2A1C53 #412C81 #583CAF #795FC8

Accessibility & contrast

On white

11.04
#412C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#412C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C81
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C81#FFFFFF#000000##FFFFFF
##412C811.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#2C4052
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412c81;
/* rgb */ color: rgb(65, 44, 129);
/* oklch */ color: oklch(37.0% 0.136 289.4);
Tailwind
colors: {
  custom: {
    50: '#7c66a6',
    500: '#412c81',
    950: '#000000',
  },
}
SCSS
$custom: #412c81;
$custom-light: #7c66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#412c81",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 254.824,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36964,
    "c": 0.1361,
    "h": 289.4
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#412C81
secondary
#9AAF5A
accent
#D94FB7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412C81

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

Preview Lab → · Contrast checker → · Palette generator →

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