#412787#412787

#412787 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.151 H 289.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#412787
RGBrgb(65, 39, 135)
HSLhsl(256, 55%, 34%)
HSVhsv(256, 71%, 53%)
CMYKcmyk(51.9%, 71.1%, 0%, 47.1%)
CIE-LABlab(24.71, 36.82, -49.55)
CIE-LCHlch(24.71, 61.73, 306.62°)
OKLaboklab(36.71% 0.0496 -0.1422)
OKLCHoklch(36.71% 0.151 289.2)
XYZxyz(7.2774, 4.3238, 23.3681)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412787 #6D8727
analogous
#273D87 #412787 #712787
triadic
#412787 #874127 #278741
tetradic
#412787 #87273D #6D8727 #278771
square
#412787 #87273D #6D8727 #278771
split-complementary
#412787 #877127 #3D8727
monochromatic
#130C28 #2A1958 #412787 #5835B6 #7959CF

Accessibility & contrast

On white

11.26
#412787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412787
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412787#FFFFFF#000000##FFFFFF
##4127871.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#284054
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #412787;
/* rgb */ color: rgb(65, 39, 135);
/* oklch */ color: oklch(36.7% 0.151 289.2);
Tailwind
colors: {
  custom: {
    50: '#7d63ab',
    500: '#412787',
    950: '#000000',
  },
}
SCSS
$custom: #412787;
$custom-light: #7d63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412787",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 256.25,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36708,
    "c": 0.15059,
    "h": 289.2
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#412787
secondary
#9BB456
accent
#DF49B6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #412787

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

Preview Lab → · Contrast checker → · Palette generator →

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