#412A78#412A78

#412A78 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.127 H 292.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#412A78
RGBrgb(65, 42, 120)
HSLhsl(258, 48%, 32%)
HSVhsv(258, 65%, 47%)
CMYKcmyk(45.8%, 65%, 0%, 52.9%)
CIE-LABlab(24.11, 30.48, -41.06)
CIE-LCHlch(24.11, 51.14, 306.58°)
OKLaboklab(35.88% 0.0483 -0.1173)
OKLCHoklch(35.88% 0.127 292.4)
XYZxyz(6.3972, 4.1356, 18.2269)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A78 #61782A
analogous
#2A3A78 #412A78 #682A78
triadic
#412A78 #78412A #2A7841
tetradic
#412A78 #782A3A #61782A #2A7868
square
#412A78 #782A3A #61782A #2A7868
split-complementary
#412A78 #78682A #3A782A
monochromatic
#100A1D #281A4B #412A78 #5A3AA5 #7858C5

Accessibility & contrast

On white

11.49
#412A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#412A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A78
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A78#FFFFFF#000000##FFFFFF
##412A781.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#313C4D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #412a78;
/* rgb */ color: rgb(65, 42, 120);
/* oklch */ color: oklch(35.9% 0.127 292.4);
Tailwind
colors: {
  custom: {
    50: '#7a65a0',
    500: '#412a78',
    950: '#000000',
  },
}
SCSS
$custom: #412a78;
$custom-light: #7a65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#412a78",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 257.692,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35884,
    "c": 0.12683,
    "h": 292.4
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#412A78
secondary
#90AA54
accent
#D850B0
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050F
muted
#7C7A7E

Preview Lab

Preview with #412A78

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

Preview Lab → · Contrast checker → · Palette generator →

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