#412786#412786

#412786 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.149 H 289.5°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#412786
RGBrgb(65, 39, 134)
HSLhsl(256, 55%, 34%)
HSVhsv(256, 71%, 53%)
CMYKcmyk(51.5%, 70.9%, 0%, 47.5%)
CIE-LABlab(24.63, 36.52, -49.06)
CIE-LCHlch(24.63, 61.16, 306.66°)
OKLaboklab(36.62% 0.0498 -0.1408)
OKLCHoklch(36.62% 0.149 289.5)
XYZxyz(7.2073, 4.2958, 22.9990)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412786 #6C8627
analogous
#273D86 #412786 #712786
triadic
#412786 #864127 #278641
tetradic
#412786 #86273D #6C8627 #278671
square
#412786 #86273D #6C8627 #278671
split-complementary
#412786 #867127 #3D8627
monochromatic
#130B27 #2A1957 #412786 #5835B5 #7959CF

Accessibility & contrast

On white

11.30
#412786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#412786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412786
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412786#FFFFFF#000000##FFFFFF
##4127861.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#293F53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412786;
/* rgb */ color: rgb(65, 39, 134);
/* oklch */ color: oklch(36.6% 0.149 289.5);
Tailwind
colors: {
  custom: {
    50: '#7d63aa',
    500: '#412786',
    950: '#000000',
  },
}
SCSS
$custom: #412786;
$custom-light: #7d63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#412786",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 256.421,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36617,
    "c": 0.14931,
    "h": 289.5
  },
  "luminance": 0.04296
}

Semantic roles & 50–950 ramp

primary
#412786
secondary
#9AB455
accent
#DE4AB6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #412786

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

Preview Lab → · Contrast checker → · Palette generator →

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