#412E81#412E81

#412E81 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.3% C 0.133 H 288.8°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#412E81
RGBrgb(65, 46, 129)
HSLhsl(254, 47%, 34%)
HSVhsv(254, 64%, 51%)
CMYKcmyk(49.6%, 64.3%, 0%, 49.4%)
CIE-LABlab(25.75, 30.80, -44.10)
CIE-LCHlch(25.75, 53.79, 304.93°)
OKLaboklab(37.3% 0.0429 -0.1262)
OKLCHoklch(37.3% 0.133 288.8)
XYZxyz(7.1183, 4.6625, 21.2895)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412E81 #6E812E
analogous
#2E4581 #412E81 #6B2E81
triadic
#412E81 #81412E #2E8141
tetradic
#412E81 #812E45 #6E812E #2E816B
square
#412E81 #812E45 #6E812E #2E816B
split-complementary
#412E81 #816B2E #45812E
monochromatic
#140E27 #2A1E54 #412E81 #583EAE #7962C7

Accessibility & contrast

On white

10.87
#412E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412E81
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412E81#FFFFFF#000000##FFFFFF
##412E811.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#2C4253
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412e81;
/* rgb */ color: rgb(65, 46, 129);
/* oklch */ color: oklch(37.3% 0.133 288.8);
Tailwind
colors: {
  custom: {
    50: '#7b68a6',
    500: '#412e81',
    950: '#000000',
  },
}
SCSS
$custom: #412e81;
$custom-light: #7b68a6;
$custom-dark: #000000;
JSON
{
  "hex": "#412e81",
  "rgb": {
    "r": 65,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 253.735,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37298,
    "c": 0.13328,
    "h": 288.8
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#412E81
secondary
#9BAE5D
accent
#D751B8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412E81

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

Preview Lab → · Contrast checker → · Palette generator →

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