#412BAB#412BAB

#412BAB is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.191 H 281.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#412BAB
RGBrgb(65, 43, 171)
HSLhsl(250, 60%, 42%)
HSVhsv(250, 75%, 67%)
CMYKcmyk(62%, 74.9%, 0%, 32.9%)
CIE-LABlab(28.88, 45.64, -64.77)
CIE-LCHlch(28.88, 79.24, 305.17°)
OKLaboklab(40.7% 0.0385 -0.1868)
OKLCHoklch(40.7% 0.191 281.6)
XYZxyz(10.3922, 5.7911, 39.0903)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412BAB #95AB2B
analogous
#2B55AB #412BAB #812BAB
triadic
#412BAB #AB412B #2BAB41
tetradic
#412BAB #AB2B55 #95AB2B #2BAB81
square
#412BAB #AB2B55 #95AB2B #2BAB81
split-complementary
#412BAB #AB812B #55AB2B
monochromatic
#1C1249 #2E1F7A #412BAB #5C43D0 #8674DC

Accessibility & contrast

On white

9.73
#412BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#412BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412BAB
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412BAB#FFFFFF#000000##FFFFFF
##412BAB1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #412bab;
/* rgb */ color: rgb(65, 43, 171);
/* oklch */ color: oklch(40.7% 0.191 281.6);
Tailwind
colors: {
  custom: {
    50: '#8367c5',
    500: '#412bab',
    950: '#000000',
  },
}
SCSS
$custom: #412bab;
$custom-light: #8367c5;
$custom-dark: #000000;
JSON
{
  "hex": "#412bab",
  "rgb": {
    "r": 65,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 250.313,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40696,
    "c": 0.19071,
    "h": 281.6
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#412BAB
secondary
#B5C46E
accent
#E345C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #412BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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