#412A7E#412A7E

#412A7E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.4% C 0.135 H 290.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#412A7E
RGBrgb(65, 42, 126)
HSLhsl(256, 50%, 33%)
HSVhsv(256, 67%, 49%)
CMYKcmyk(48.4%, 66.7%, 0%, 50.6%)
CIE-LABlab(24.59, 32.31, -44.09)
CIE-LCHlch(24.59, 54.66, 306.24°)
OKLaboklab(36.38% 0.0478 -0.1262)
OKLCHoklch(36.38% 0.135 290.7)
XYZxyz(6.7728, 4.2859, 20.2050)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A7E #677E2A
analogous
#2A3D7E #412A7E #6B2A7E
triadic
#412A7E #7E412A #2A7E41
tetradic
#412A7E #7E2A3D #677E2A #2A7E6B
square
#412A7E #7E2A3D #677E2A #2A7E6B
split-complementary
#412A7E #7E6B2A #3D7E2A
monochromatic
#120B22 #291B50 #412A7E #5939AC #785AC8

Accessibility & contrast

On white

11.31
#412A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#412A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A7E
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A7E#FFFFFF#000000##FFFFFF
##412A7E1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#2E3E50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412a7e;
/* rgb */ color: rgb(65, 42, 126);
/* oklch */ color: oklch(36.4% 0.135 290.7);
Tailwind
colors: {
  custom: {
    50: '#7b65a4',
    500: '#412a7e',
    950: '#000000',
  },
}
SCSS
$custom: #412a7e;
$custom-light: #7b65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#412a7e",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 256.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36383,
    "c": 0.13488,
    "h": 290.7
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#412A7E
secondary
#96AE56
accent
#DA4EB3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #412A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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