#412799#412799

#412799 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.173 H 285.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#412799
RGBrgb(65, 39, 153)
HSLhsl(254, 59%, 38%)
HSVhsv(254, 75%, 60%)
CMYKcmyk(57.5%, 74.5%, 0%, 40%)
CIE-LABlab(26.37, 42.29, -57.97)
CIE-LCHlch(26.37, 71.75, 306.11°)
OKLaboklab(38.4% 0.0458 -0.1669)
OKLCHoklch(38.4% 0.173 285.3)
XYZxyz(8.6535, 4.8743, 30.6157)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412799 #7F9927
analogous
#274699 #412799 #7A2799
triadic
#412799 #994127 #279941
tetradic
#412799 #992746 #7F9927 #27997A
square
#412799 #992746 #7F9927 #27997A
split-complementary
#412799 #997A27 #469927
monochromatic
#180E37 #2C1B68 #412799 #5633CA #7E63D7

Accessibility & contrast

On white

10.63
#412799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#412799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412799
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412799#FFFFFF#000000##FFFFFF
##4127991.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#16465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412799;
/* rgb */ color: rgb(65, 39, 153);
/* oklch */ color: oklch(38.4% 0.173 285.3);
Tailwind
colors: {
  custom: {
    50: '#8064b8',
    500: '#412799',
    950: '#000000',
  },
}
SCSS
$custom: #412799;
$custom-light: #8064b8;
$custom-dark: #000000;
JSON
{
  "hex": "#412799",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 253.684,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38396,
    "c": 0.17304,
    "h": 285.3
  },
  "luminance": 0.04875
}

Semantic roles & 50–950 ramp

primary
#412799
secondary
#A7BD5F
accent
#E345BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412799

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

Preview Lab → · Contrast checker → · Palette generator →

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