#412B78#412B78

#412B78 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.1% C 0.125 H 292.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#412B78
RGBrgb(65, 43, 120)
HSLhsl(257, 47%, 32%)
HSVhsv(257, 64%, 47%)
CMYKcmyk(45.8%, 64.2%, 0%, 52.9%)
CIE-LABlab(24.35, 29.86, -40.69)
CIE-LCHlch(24.35, 50.47, 306.28°)
OKLaboklab(36.05% 0.0471 -0.1162)
OKLCHoklch(36.05% 0.125 292.1)
XYZxyz(6.4331, 4.2074, 18.2388)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412B78 #62782B
analogous
#2B3C78 #412B78 #682B78
triadic
#412B78 #78412B #2B7841
tetradic
#412B78 #782B3C #62782B #2B7868
square
#412B78 #782B3C #62782B #2B7868
split-complementary
#412B78 #78682B #3C782B
monochromatic
#100B1E #291B4B #412B78 #593BA5 #785AC4

Accessibility & contrast

On white

11.40
#412B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#412B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412B78
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412B78#FFFFFF#000000##FFFFFF
##412B781.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#313D4D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412b78;
/* rgb */ color: rgb(65, 43, 120);
/* oklch */ color: oklch(36.1% 0.125 292.1);
Tailwind
colors: {
  custom: {
    50: '#7a65a0',
    500: '#412b78',
    950: '#000000',
  },
}
SCSS
$custom: #412b78;
$custom-light: #7a65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#412b78",
  "rgb": {
    "r": 65,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 257.143,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36052,
    "c": 0.12535,
    "h": 292.1
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#412B78
secondary
#91AA55
accent
#D751B1
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A060F
muted
#7C7A7E

Preview Lab

Preview with #412B78

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

Preview Lab → · Contrast checker → · Palette generator →

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