#412A98#412A98

#412A98 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.168 H 285.0°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#412A98
RGBrgb(65, 42, 152)
HSLhsl(253, 57%, 38%)
HSVhsv(253, 72%, 60%)
CMYKcmyk(57.2%, 72.4%, 0%, 40.4%)
CIE-LABlab(26.87, 40.34, -56.55)
CIE-LCHlch(26.87, 69.46, 305.50°)
OKLaboklab(38.72% 0.0435 -0.1627)
OKLCHoklch(38.72% 0.168 285)
XYZxyz(8.6737, 5.0462, 30.2166)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A98 #81982A
analogous
#2A4A98 #412A98 #782A98
triadic
#412A98 #98412A #2A9841
tetradic
#412A98 #982A4A #81982A #2A9878
square
#412A98 #982A4A #81982A #2A9878
split-complementary
#412A98 #98782A #4A982A
monochromatic
#181038 #2C1D68 #412A98 #5637C8 #7E67D5

Accessibility & contrast

On white

10.45
#412A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#412A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A98
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A98#FFFFFF#000000##FFFFFF
##412A981.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#17475E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412a98;
/* rgb */ color: rgb(65, 42, 152);
/* oklch */ color: oklch(38.7% 0.168 285.0);
Tailwind
colors: {
  custom: {
    50: '#7f66b7',
    500: '#412a98',
    950: '#000000',
  },
}
SCSS
$custom: #412a98;
$custom-light: #7f66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412a98",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 252.545,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.16844,
    "h": 285
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#412A98
secondary
#A9BB62
accent
#E048C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412A98

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

Preview Lab → · Contrast checker → · Palette generator →

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