#412E82#412E82

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

Color values

HEX#412E82
RGBrgb(65, 46, 130)
HSLhsl(254, 48%, 35%)
HSVhsv(254, 65%, 51%)
CMYKcmyk(50%, 64.6%, 0%, 49%)
CIE-LABlab(25.83, 31.11, -44.60)
CIE-LCHlch(25.83, 54.38, 304.90°)
OKLaboklab(37.38% 0.0428 -0.1277)
OKLCHoklch(37.38% 0.135 288.5)
XYZxyz(7.1851, 4.6892, 21.6413)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412E82 #6F822E
analogous
#2E4582 #412E82 #6B2E82
triadic
#412E82 #82412E #2E8241
tetradic
#412E82 #822E45 #6F822E #2E826B
square
#412E82 #822E45 #6F822E #2E826B
split-complementary
#412E82 #826B2E #45822E
monochromatic
#140E28 #2A1E55 #412E82 #583EAF #7A63C8

Accessibility & contrast

On white

10.84
#412E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#412E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412E82
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412E82#FFFFFF#000000##FFFFFF
##412E821.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#2B4253
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412e82;
/* rgb */ color: rgb(65, 46, 130);
/* oklch */ color: oklch(37.4% 0.135 288.5);
Tailwind
colors: {
  custom: {
    50: '#7b68a7',
    500: '#412e82',
    950: '#000000',
  },
}
SCSS
$custom: #412e82;
$custom-light: #7b68a7;
$custom-dark: #000000;
JSON
{
  "hex": "#412e82",
  "rgb": {
    "r": 65,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 253.571,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37381,
    "c": 0.13464,
    "h": 288.5
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#412E82
secondary
#9CAE5D
accent
#D750B9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412E82

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

Preview Lab → · Contrast checker → · Palette generator →

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