#412B8A#412B8A

#412B8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.149 H 287.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#412B8A
RGBrgb(65, 43, 138)
HSLhsl(254, 52%, 35%)
HSVhsv(254, 69%, 54%)
CMYKcmyk(52.9%, 68.8%, 0%, 45.9%)
CIE-LABlab(25.82, 35.43, -49.61)
CIE-LCHlch(25.82, 60.96, 305.53°)
OKLaboklab(37.58% 0.0451 -0.1424)
OKLCHoklch(37.58% 0.149 287.6)
XYZxyz(7.6299, 4.6862, 24.5423)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412B8A #748A2B
analogous
#2B448A #412B8A #702B8A
triadic
#412B8A #8A412B #2B8A41
tetradic
#412B8A #8A2B44 #748A2B #2B8A70
square
#412B8A #8A2B44 #748A2B #2B8A70
split-complementary
#412B8A #8A702B #448A2B
monochromatic
#150E2D #2B1C5B #412B8A #573AB9 #7B61CE

Accessibility & contrast

On white

10.84
#412B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#412B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412B8A
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412B8A#FFFFFF#000000##FFFFFF
##412B8A1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#264357
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412b8a;
/* rgb */ color: rgb(65, 43, 138);
/* oklch */ color: oklch(37.6% 0.149 287.6);
Tailwind
colors: {
  custom: {
    50: '#7d66ad',
    500: '#412b8a',
    950: '#000000',
  },
}
SCSS
$custom: #412b8a;
$custom-light: #7d66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#412b8a",
  "rgb": {
    "r": 65,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 253.895,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37583,
    "c": 0.14936,
    "h": 287.6
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#412B8A
secondary
#A0B45D
accent
#DC4CBB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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