#412781#412781

#412781 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.143 H 290.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#412781
RGBrgb(65, 39, 129)
HSLhsl(257, 54%, 33%)
HSVhsv(257, 70%, 51%)
CMYKcmyk(49.6%, 69.8%, 0%, 49.4%)
CIE-LABlab(24.19, 35.00, -46.63)
CIE-LCHlch(24.19, 58.31, 306.89°)
OKLaboklab(36.17% 0.0506 -0.1336)
OKLCHoklch(36.17% 0.143 290.8)
XYZxyz(6.8668, 4.1596, 21.2057)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412781 #678127
analogous
#273A81 #412781 #6E2781
triadic
#412781 #814127 #278141
tetradic
#412781 #81273A #678127 #27816E
square
#412781 #81273A #678127 #27816E
split-complementary
#412781 #816E27 #3A8127
monochromatic
#120B23 #291952 #412781 #5935B0 #7856CC

Accessibility & contrast

On white

11.46
#412781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#412781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412781
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412781#FFFFFF#000000##FFFFFF
##4127811.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#2C3D50
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #412781;
/* rgb */ color: rgb(65, 39, 129);
/* oklch */ color: oklch(36.2% 0.143 290.8);
Tailwind
colors: {
  custom: {
    50: '#7c63a6',
    500: '#412781',
    950: '#000000',
  },
}
SCSS
$custom: #412781;
$custom-light: #7c63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#412781",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 257.333,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36171,
    "c": 0.1429,
    "h": 290.8
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#412781
secondary
#96B153
accent
#DD4BB3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #412781

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

Preview Lab → · Contrast checker → · Palette generator →

#412781 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva