#412D97#412D97

#412D97 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.164 H 284.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#412D97
RGBrgb(65, 45, 151)
HSLhsl(251, 54%, 38%)
HSVhsv(251, 70%, 59%)
CMYKcmyk(57%, 70.2%, 0%, 40.8%)
CIE-LABlab(27.39, 38.32, -55.07)
CIE-LCHlch(27.39, 67.09, 304.83°)
OKLaboklab(39.07% 0.0411 -0.1584)
OKLCHoklch(39.07% 0.164 284.5)
XYZxyz(8.7026, 5.2344, 29.8239)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D97 #83972D
analogous
#2D4E97 #412D97 #762D97
triadic
#412D97 #97412D #2D9741
tetradic
#412D97 #972D4E #83972D #2D9776
square
#412D97 #972D4E #83972D #2D9776
split-complementary
#412D97 #97762D #4E972D
monochromatic
#181139 #2D1F68 #412D97 #563CC5 #7F6BD3

Accessibility & contrast

On white

10.26
#412D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#412D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412D97
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D97#FFFFFF#000000##FFFFFF
##412D971.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#18495E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #412d97;
/* rgb */ color: rgb(65, 45, 151);
/* oklch */ color: oklch(39.1% 0.164 284.5);
Tailwind
colors: {
  custom: {
    50: '#7f68b7',
    500: '#412d97',
    950: '#000000',
  },
}
SCSS
$custom: #412d97;
$custom-light: #7f68b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412d97",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 251.321,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39065,
    "c": 0.16366,
    "h": 284.5
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#412D97
secondary
#AABA66
accent
#DD4AC2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412D97

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

Preview Lab → · Contrast checker → · Palette generator →

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