#412E8E#412E8E

#412E8E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.151 H 286.0°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#412E8E
RGBrgb(65, 46, 142)
HSLhsl(252, 51%, 37%)
HSVhsv(252, 68%, 56%)
CMYKcmyk(54.2%, 67.6%, 0%, 44.3%)
CIE-LABlab(26.82, 34.89, -50.46)
CIE-LCHlch(26.82, 61.35, 304.66°)
OKLaboklab(38.41% 0.0415 -0.1449)
OKLCHoklch(38.41% 0.151 286)
XYZxyz(8.0380, 5.0304, 26.1334)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412E8E #7B8E2E
analogous
#2E4B8E #412E8E #712E8E
triadic
#412E8E #8E412E #2E8E41
tetradic
#412E8E #8E2E4B #7B8E2E #2E8E71
square
#412E8E #8E2E4B #7B8E2E #2E8E71
split-complementary
#412E8E #8E712E #4B8E2E
monochromatic
#171032 #2C1F60 #412E8E #563DBC #7C68CE

Accessibility & contrast

On white

10.47
#412E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#412E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412E8E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412E8E#FFFFFF#000000##FFFFFF
##412E8E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#22465A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412e8e;
/* rgb */ color: rgb(65, 46, 142);
/* oklch */ color: oklch(38.4% 0.151 286.0);
Tailwind
colors: {
  custom: {
    50: '#7d68b0',
    500: '#412e8e',
    950: '#000000',
  },
}
SCSS
$custom: #412e8e;
$custom-light: #7d68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#412e8e",
  "rgb": {
    "r": 65,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 251.875,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3841,
    "c": 0.15072,
    "h": 286
  },
  "luminance": 0.05031
}

Semantic roles & 50–950 ramp

primary
#412E8E
secondary
#A5B563
accent
#DB4DBF
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #412E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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