#412581#412581

#412581 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.145 H 291.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#412581
RGBrgb(65, 37, 129)
HSLhsl(258, 55%, 33%)
HSVhsv(258, 71%, 51%)
CMYKcmyk(49.6%, 71.3%, 0%, 49.4%)
CIE-LABlab(23.78, 36.15, -47.31)
CIE-LCHlch(23.78, 59.54, 307.38°)
OKLaboklab(35.87% 0.0527 -0.1356)
OKLCHoklch(35.87% 0.146 291.2)
XYZxyz(6.8029, 4.0317, 21.1844)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412581 #658125
analogous
#253781 #412581 #6F2581
triadic
#412581 #814125 #258141
tetradic
#412581 #812537 #658125 #25816F
square
#412581 #812537 #658125 #25816F
split-complementary
#412581 #816F25 #378125
monochromatic
#110A22 #291751 #412581 #5933B1 #7853CE

Accessibility & contrast

On white

11.63
#412581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#412581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412581
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412581#FFFFFF#000000##FFFFFF
##4125811.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412581;
/* rgb */ color: rgb(65, 37, 129);
/* oklch */ color: oklch(35.9% 0.145 291.2);
Tailwind
colors: {
  custom: {
    50: '#7c62a6',
    500: '#412581',
    950: '#000000',
  },
}
SCSS
$custom: #412581;
$custom-light: #7c62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#412581",
  "rgb": {
    "r": 65,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 258.261,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35873,
    "c": 0.1455,
    "h": 291.2
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#412581
secondary
#94B250
accent
#DF49B1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #412581

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

Preview Lab → · Contrast checker → · Palette generator →

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