#412A87#412A87

#412A87 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.147 H 288.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#412A87
RGBrgb(65, 42, 135)
HSLhsl(255, 53%, 35%)
HSVhsv(255, 69%, 53%)
CMYKcmyk(51.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(25.35, 35.09, -48.51)
CIE-LCHlch(25.35, 59.87, 305.88°)
OKLaboklab(37.16% 0.0466 -0.1392)
OKLCHoklch(37.16% 0.147 288.5)
XYZxyz(7.3798, 4.5287, 23.4022)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A87 #70872A
analogous
#2A4187 #412A87 #702A87
triadic
#412A87 #87412A #2A8741
tetradic
#412A87 #872A41 #70872A #2A8770
square
#412A87 #872A41 #70872A #2A8770
split-complementary
#412A87 #87702A #41872A
monochromatic
#140D2A #2B1B58 #412A87 #5739B6 #7A5ECD

Accessibility & contrast

On white

11.02
#412A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#412A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A87
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A87#FFFFFF#000000##FFFFFF
##412A871.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#284155
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412a87;
/* rgb */ color: rgb(65, 42, 135);
/* oklch */ color: oklch(37.2% 0.147 288.5);
Tailwind
colors: {
  custom: {
    50: '#7d65ab',
    500: '#412a87',
    950: '#000000',
  },
}
SCSS
$custom: #412a87;
$custom-light: #7d65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412a87",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 254.839,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.14675,
    "h": 288.5
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#412A87
secondary
#9DB35A
accent
#DC4CB8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412A87

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

Preview Lab → · Contrast checker → · Palette generator →

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