#412A82#412A82

#412A82 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.140 H 289.7°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#412A82
RGBrgb(65, 42, 130)
HSLhsl(256, 51%, 34%)
HSVhsv(256, 68%, 51%)
CMYKcmyk(50%, 67.7%, 0%, 49%)
CIE-LABlab(24.92, 33.54, -46.07)
CIE-LCHlch(24.92, 56.99, 306.06°)
OKLaboklab(36.73% 0.0473 -0.132)
OKLCHoklch(36.73% 0.14 289.7)
XYZxyz(7.0360, 4.3912, 21.5916)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A82 #6B822A
analogous
#2A3F82 #412A82 #6D2A82
triadic
#412A82 #82412A #2A8241
tetradic
#412A82 #822A3F #6B822A #2A826D
square
#412A82 #822A3F #6B822A #2A826D
split-complementary
#412A82 #826D2A #3F822A
monochromatic
#130C25 #2A1B54 #412A82 #5839B0 #795CCA

Accessibility & contrast

On white

11.18
#412A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#412A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A82
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A82#FFFFFF#000000##FFFFFF
##412A821.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#2C3F52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #412a82;
/* rgb */ color: rgb(65, 42, 130);
/* oklch */ color: oklch(36.7% 0.140 289.7);
Tailwind
colors: {
  custom: {
    50: '#7c65a7',
    500: '#412a82',
    950: '#000000',
  },
}
SCSS
$custom: #412a82;
$custom-light: #7c65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#412a82",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 255.682,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36725,
    "c": 0.14019,
    "h": 289.7
  },
  "luminance": 0.04391
}

Semantic roles & 50–950 ramp

primary
#412A82
secondary
#99B058
accent
#DB4DB6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412A82

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

Preview Lab → · Contrast checker → · Palette generator →

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