#412C87#412C87

#412C87 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.144 H 288.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#412C87
RGBrgb(65, 44, 135)
HSLhsl(254, 51%, 35%)
HSVhsv(254, 67%, 53%)
CMYKcmyk(51.9%, 67.4%, 0%, 47.1%)
CIE-LABlab(25.79, 33.90, -47.80)
CIE-LCHlch(25.79, 58.60, 305.34°)
OKLaboklab(37.48% 0.0445 -0.1371)
OKLCHoklch(37.48% 0.144 288)
XYZxyz(7.4526, 4.6741, 23.4265)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C87 #72872C
analogous
#2C4587 #412C87 #6E2C87
triadic
#412C87 #87412C #2C8741
tetradic
#412C87 #872C45 #72872C #2C876E
square
#412C87 #872C45 #72872C #2C876E
split-complementary
#412C87 #876E2C #45872C
monochromatic
#150E2B #2B1D59 #412C87 #573BB5 #7A62CC

Accessibility & contrast

On white

10.85
#412C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#412C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C87
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C87#FFFFFF#000000##FFFFFF
##412C871.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412c87;
/* rgb */ color: rgb(65, 44, 135);
/* oklch */ color: oklch(37.5% 0.144 288.0);
Tailwind
colors: {
  custom: {
    50: '#7c66ab',
    500: '#412c87',
    950: '#000000',
  },
}
SCSS
$custom: #412c87;
$custom-light: #7c66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412c87",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 253.846,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37477,
    "c": 0.14411,
    "h": 288
  },
  "luminance": 0.04674
}

Semantic roles & 50–950 ramp

primary
#412C87
secondary
#9EB25D
accent
#DA4DBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412C87

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

Preview Lab → · Contrast checker → · Palette generator →

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