#412B98#412B98

#412B98 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.167 H 284.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#412B98
RGBrgb(65, 43, 152)
HSLhsl(252, 56%, 38%)
HSVhsv(252, 72%, 60%)
CMYKcmyk(57.2%, 71.7%, 0%, 40.4%)
CIE-LABlab(27.07, 39.78, -56.22)
CIE-LCHlch(27.07, 68.87, 305.28°)
OKLaboklab(38.86% 0.0426 -0.1618)
OKLCHoklch(38.86% 0.167 284.8)
XYZxyz(8.7096, 5.1181, 30.2286)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412B98 #82982B
analogous
#2B4B98 #412B98 #772B98
triadic
#412B98 #98412B #2B9841
tetradic
#412B98 #982B4B #82982B #2B9877
square
#412B98 #982B4B #82982B #2B9877
split-complementary
#412B98 #98772B #4B982B
monochromatic
#181039 #2D1E68 #412B98 #5639C7 #7F69D5

Accessibility & contrast

On white

10.38
#412B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#412B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412B98
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412B98#FFFFFF#000000##FFFFFF
##412B981.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#17485E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #412b98;
/* rgb */ color: rgb(65, 43, 152);
/* oklch */ color: oklch(38.9% 0.167 284.8);
Tailwind
colors: {
  custom: {
    50: '#7f66b7',
    500: '#412b98',
    950: '#000000',
  },
}
SCSS
$custom: #412b98;
$custom-light: #7f66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412b98",
  "rgb": {
    "r": 65,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 252.11,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38861,
    "c": 0.1673,
    "h": 284.8
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#412B98
secondary
#A9BB64
accent
#DF49C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412B98

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

Preview Lab → · Contrast checker → · Palette generator →

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