#412B87#412B87

#412B87 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.145 H 288.2°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#412B87
RGBrgb(65, 43, 135)
HSLhsl(254, 52%, 35%)
HSVhsv(254, 68%, 53%)
CMYKcmyk(51.9%, 68.1%, 0%, 47.1%)
CIE-LABlab(25.56, 34.49, -48.16)
CIE-LCHlch(25.56, 59.24, 305.61°)
OKLaboklab(37.32% 0.0455 -0.1381)
OKLCHoklch(37.32% 0.145 288.2)
XYZxyz(7.4158, 4.6005, 23.4142)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412B87 #71872B
analogous
#2B4387 #412B87 #6F2B87
triadic
#412B87 #87412B #2B8741
tetradic
#412B87 #872B43 #71872B #2B876F
square
#412B87 #872B43 #71872B #2B876F
split-complementary
#412B87 #876F2B #43872B
monochromatic
#140D2A #2B1C59 #412B87 #573AB5 #7A60CC

Accessibility & contrast

On white

10.94
#412B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#412B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412B87
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412B87#FFFFFF#000000##FFFFFF
##412B871.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#284255
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412b87;
/* rgb */ color: rgb(65, 43, 135);
/* oklch */ color: oklch(37.3% 0.145 288.2);
Tailwind
colors: {
  custom: {
    50: '#7d66ab',
    500: '#412b87',
    950: '#000000',
  },
}
SCSS
$custom: #412b87;
$custom-light: #7d66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412b87",
  "rgb": {
    "r": 65,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 254.348,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37318,
    "c": 0.14543,
    "h": 288.2
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#412B87
secondary
#9EB25B
accent
#DB4DB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412B87

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

Preview Lab → · Contrast checker → · Palette generator →

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