#412C8B#412C8B

#412C8B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.149 H 287.1°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#412C8B
RGBrgb(65, 44, 139)
HSLhsl(253, 52%, 36%)
HSVhsv(253, 68%, 55%)
CMYKcmyk(53.2%, 68.3%, 0%, 45.5%)
CIE-LABlab(26.12, 35.15, -49.74)
CIE-LCHlch(26.12, 60.90, 305.25°)
OKLaboklab(37.83% 0.0439 -0.1428)
OKLCHoklch(37.83% 0.149 287.1)
XYZxyz(7.7395, 4.7889, 24.9376)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C8B #768B2C
analogous
#2C468B #412C8B #702C8B
triadic
#412C8B #8B412C #2C8B41
tetradic
#412C8B #8B2C46 #768B2C #2C8B70
square
#412C8B #8B2C46 #768B2C #2C8B70
split-complementary
#412C8B #8B702C #468B2C
monochromatic
#160F2E #2B1D5D #412C8B #573BB9 #7B64CE

Accessibility & contrast

On white

10.73
#412C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#412C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C8B
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C8B#FFFFFF#000000##FFFFFF
##412C8B1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#254457
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412c8b;
/* rgb */ color: rgb(65, 44, 139);
/* oklch */ color: oklch(37.8% 0.149 287.1);
Tailwind
colors: {
  custom: {
    50: '#7d67ae',
    500: '#412c8b',
    950: '#000000',
  },
}
SCSS
$custom: #412c8b;
$custom-light: #7d67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#412c8b",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 253.263,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.14937,
    "h": 287.1
  },
  "luminance": 0.04789
}

Semantic roles & 50–950 ramp

primary
#412C8B
secondary
#A1B45F
accent
#DB4CBC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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