#412AAB#412AAB

#412AAB is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.192 H 281.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#412AAB
RGBrgb(65, 42, 171)
HSLhsl(251, 61%, 42%)
HSVhsv(251, 75%, 67%)
CMYKcmyk(62%, 75.4%, 0%, 32.9%)
CIE-LABlab(28.69, 46.17, -65.07)
CIE-LCHlch(28.69, 79.79, 305.36°)
OKLaboklab(40.56% 0.0392 -0.1877)
OKLCHoklch(40.56% 0.192 281.8)
XYZxyz(10.3563, 5.7193, 39.0784)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412AAB #94AB2A
analogous
#2A54AB #412AAB #822AAB
triadic
#412AAB #AB412A #2AAB41
tetradic
#412AAB #AB2A54 #94AB2A #2AAB82
square
#412AAB #AB2A54 #94AB2A #2AAB82
split-complementary
#412AAB #AB822A #54AB2A
monochromatic
#1C1249 #2E1E7A #412AAB #5B42D1 #8673DD

Accessibility & contrast

On white

9.79
#412AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#412AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412AAB
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412AAB#FFFFFF#000000##FFFFFF
##412AAB1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.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: #412aab;
/* rgb */ color: rgb(65, 42, 171);
/* oklch */ color: oklch(40.6% 0.192 281.8);
Tailwind
colors: {
  custom: {
    50: '#8367c5',
    500: '#412aab',
    950: '#000000',
  },
}
SCSS
$custom: #412aab;
$custom-light: #8367c5;
$custom-dark: #000000;
JSON
{
  "hex": "#412aab",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 250.698,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40564,
    "c": 0.19172,
    "h": 281.8
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#412AAB
secondary
#B4C46D
accent
#E444C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #412AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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