#412478#412478

#412478 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.135 H 294.1°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#412478
RGBrgb(65, 36, 120)
HSLhsl(261, 54%, 31%)
HSVhsv(261, 70%, 47%)
CMYKcmyk(45.8%, 70%, 0%, 52.9%)
CIE-LABlab(22.80, 34.04, -43.20)
CIE-LCHlch(22.80, 55.00, 308.24°)
OKLaboklab(34.93% 0.0553 -0.1235)
OKLCHoklch(34.93% 0.135 294.1)
XYZxyz(6.2001, 3.7415, 18.1612)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412478 #5B7824
analogous
#243178 #412478 #6B2478
triadic
#412478 #784124 #247841
tetradic
#412478 #782431 #5B7824 #24786B
square
#412478 #782431 #5B7824 #24786B
split-complementary
#412478 #786B24 #317824
monochromatic
#0E081A #271649 #412478 #5A32A7 #784DCA

Accessibility & contrast

On white

12.01
#412478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#412478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412478
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412478#FFFFFF#000000##FFFFFF
##4124781.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#32384B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #412478;
/* rgb */ color: rgb(65, 36, 120);
/* oklch */ color: oklch(34.9% 0.135 294.1);
Tailwind
colors: {
  custom: {
    50: '#7b61a0',
    500: '#412478',
    950: '#000000',
  },
}
SCSS
$custom: #412478;
$custom-light: #7b61a0;
$custom-dark: #000000;
JSON
{
  "hex": "#412478",
  "rgb": {
    "r": 65,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 260.714,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34932,
    "c": 0.13534,
    "h": 294.1
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#412478
secondary
#8AAB4D
accent
#DD4BAB
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #412478

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

Preview Lab → · Contrast checker → · Palette generator →

#412478 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva