#412587#412587

#412587 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.153 H 289.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#412587
RGBrgb(65, 37, 135)
HSLhsl(257, 57%, 34%)
HSVhsv(257, 73%, 53%)
CMYKcmyk(51.9%, 72.6%, 0%, 47.1%)
CIE-LABlab(24.31, 37.95, -50.21)
CIE-LCHlch(24.31, 62.94, 307.08°)
OKLaboklab(36.42% 0.0515 -0.1441)
OKLCHoklch(36.42% 0.153 289.7)
XYZxyz(7.2135, 4.1959, 23.3468)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412587 #6B8725
analogous
#253A87 #412587 #722587
triadic
#412587 #874125 #258741
tetradic
#412587 #87253A #6B8725 #258772
square
#412587 #87253A #6B8725 #258772
split-complementary
#412587 #877225 #3A8725
monochromatic
#130B27 #2A1857 #412587 #5832B7 #7956D1

Accessibility & contrast

On white

11.42
#412587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#412587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412587
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412587#FFFFFF#000000##FFFFFF
##4125871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#283E53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412587;
/* rgb */ color: rgb(65, 37, 135);
/* oklch */ color: oklch(36.4% 0.153 289.7);
Tailwind
colors: {
  custom: {
    50: '#7d62ab',
    500: '#412587',
    950: '#000000',
  },
}
SCSS
$custom: #412587;
$custom-light: #7d62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412587",
  "rgb": {
    "r": 65,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 257.143,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36418,
    "c": 0.15307,
    "h": 289.7
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#412587
secondary
#99B553
accent
#E048B5
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412587

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

Preview Lab → · Contrast checker → · Palette generator →

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