#412D84#412D84

#412D84 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.139 H 288.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#412D84
RGBrgb(65, 45, 132)
HSLhsl(254, 49%, 35%)
HSVhsv(254, 66%, 52%)
CMYKcmyk(50.8%, 65.9%, 0%, 48.2%)
CIE-LABlab(25.76, 32.35, -45.96)
CIE-LCHlch(25.76, 56.21, 305.14°)
OKLaboklab(37.38% 0.0438 -0.1317)
OKLCHoklch(37.38% 0.139 288.4)
XYZxyz(7.2820, 4.6662, 22.3423)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D84 #70842D
analogous
#2D4584 #412D84 #6D2D84
triadic
#412D84 #84412D #2D8441
tetradic
#412D84 #842D45 #70842D #2D846D
square
#412D84 #842D45 #70842D #2D846D
split-complementary
#412D84 #846D2D #45842D
monochromatic
#140E29 #2B1D56 #412D84 #573DB2 #7A62C9

Accessibility & contrast

On white

10.86
#412D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412D84
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D84#FFFFFF#000000##FFFFFF
##412D841.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#2A4254
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412d84;
/* rgb */ color: rgb(65, 45, 132);
/* oklch */ color: oklch(37.4% 0.139 288.4);
Tailwind
colors: {
  custom: {
    50: '#7c67a8',
    500: '#412d84',
    950: '#000000',
  },
}
SCSS
$custom: #412d84;
$custom-light: #7c67a8;
$custom-dark: #000000;
JSON
{
  "hex": "#412d84",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 253.793,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37382,
    "c": 0.13874,
    "h": 288.4
  },
  "luminance": 0.04667
}

Semantic roles & 50–950 ramp

primary
#412D84
secondary
#9DB05D
accent
#D94FB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412D84

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

Preview Lab → · Contrast checker → · Palette generator →

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