#412B9B#412B9B

#412B9B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.171 H 284.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#412B9B
RGBrgb(65, 43, 155)
HSLhsl(252, 57%, 39%)
HSVhsv(252, 72%, 61%)
CMYKcmyk(58.1%, 72.3%, 0%, 39.2%)
CIE-LABlab(27.35, 40.71, -57.60)
CIE-LCHlch(27.35, 70.53, 305.25°)
OKLaboklab(39.14% 0.042 -0.1658)
OKLCHoklch(39.14% 0.171 284.2)
XYZxyz(8.9584, 5.2176, 31.5390)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412B9B #859B2B
analogous
#2B4D9B #412B9B #792B9B
triadic
#412B9B #9B412B #2B9B41
tetradic
#412B9B #9B2B4D #859B2B #2B9B79
square
#412B9B #9B2B4D #859B2B #2B9B79
split-complementary
#412B9B #9B792B #4D9B2B
monochromatic
#19103B #2D1E6B #412B9B #573BC9 #806BD6

Accessibility & contrast

On white

10.28
#412B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#412B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412B9B
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412B9B#FFFFFF#000000##FFFFFF
##412B9B1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#124960
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #412b9b;
/* rgb */ color: rgb(65, 43, 155);
/* oklch */ color: oklch(39.1% 0.171 284.2);
Tailwind
colors: {
  custom: {
    50: '#8067b9',
    500: '#412b9b',
    950: '#000000',
  },
}
SCSS
$custom: #412b9b;
$custom-light: #8067b9;
$custom-dark: #000000;
JSON
{
  "hex": "#412b9b",
  "rgb": {
    "r": 65,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 251.786,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39144,
    "c": 0.17106,
    "h": 284.2
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#412B9B
secondary
#ABBC65
accent
#E048C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #412B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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