#412D78#412D78

#412D78 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.4% C 0.122 H 291.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#412D78
RGBrgb(65, 45, 120)
HSLhsl(256, 45%, 32%)
HSVhsv(256, 63%, 47%)
CMYKcmyk(45.8%, 62.5%, 0%, 52.9%)
CIE-LABlab(24.82, 28.62, -39.93)
CIE-LCHlch(24.82, 49.12, 305.63°)
OKLaboklab(36.4% 0.0447 -0.1139)
OKLCHoklch(36.4% 0.122 291.4)
XYZxyz(6.5076, 4.3564, 18.2637)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D78 #64782D
analogous
#2D3E78 #412D78 #672D78
triadic
#412D78 #78412D #2D7841
tetradic
#412D78 #782D3E #64782D #2D7867
square
#412D78 #782D3E #64782D #2D7867
split-complementary
#412D78 #78672D #3E782D
monochromatic
#110C1F #291C4B #412D78 #593EA5 #785DC2

Accessibility & contrast

On white

11.22
#412D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#412D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412D78
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D78#FFFFFF#000000##FFFFFF
##412D781.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#313E4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #412d78;
/* rgb */ color: rgb(65, 45, 120);
/* oklch */ color: oklch(36.4% 0.122 291.4);
Tailwind
colors: {
  custom: {
    50: '#7a679f',
    500: '#412d78',
    950: '#000000',
  },
}
SCSS
$custom: #412d78;
$custom-light: #7a679f;
$custom-dark: #000000;
JSON
{
  "hex": "#412d78",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 256,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36396,
    "c": 0.12235,
    "h": 291.4
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#412D78
secondary
#93A958
accent
#D553B2
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A060F
muted
#7C7A7E

Preview Lab

Preview with #412D78

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

Preview Lab → · Contrast checker → · Palette generator →

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