#412C97#412C97

#412C97 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.165 H 284.7°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#412C97
RGBrgb(65, 44, 151)
HSLhsl(252, 55%, 38%)
HSVhsv(252, 71%, 59%)
CMYKcmyk(57%, 70.9%, 0%, 40.8%)
CIE-LABlab(27.18, 38.90, -55.42)
CIE-LCHlch(27.18, 67.70, 305.07°)
OKLaboklab(38.92% 0.042 -0.1594)
OKLCHoklch(38.92% 0.165 284.7)
XYZxyz(8.6649, 5.1590, 29.8114)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412C97 #82972C
analogous
#2C4C97 #412C97 #762C97
triadic
#412C97 #97412C #2C9741
tetradic
#412C97 #972C4C #82972C #2C9776
square
#412C97 #972C4C #82972C #2C9776
split-complementary
#412C97 #97762C #4C972C
monochromatic
#181038 #2D1E68 #412C97 #563AC6 #7F6AD4

Accessibility & contrast

On white

10.33
#412C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#412C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412C97
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412C97#FFFFFF#000000##FFFFFF
##412C971.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#18485E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #412c97;
/* rgb */ color: rgb(65, 44, 151);
/* oklch */ color: oklch(38.9% 0.165 284.7);
Tailwind
colors: {
  custom: {
    50: '#7f67b7',
    500: '#412c97',
    950: '#000000',
  },
}
SCSS
$custom: #412c97;
$custom-light: #7f67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412c97",
  "rgb": {
    "r": 65,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 251.776,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38915,
    "c": 0.16485,
    "h": 284.7
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

primary
#412C97
secondary
#A9BA65
accent
#DE4AC1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412C97

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

Preview Lab → · Contrast checker → · Palette generator →

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