#412899#412899

#412899 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.172 H 285.2°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#412899
RGBrgb(65, 40, 153)
HSLhsl(253, 59%, 38%)
HSVhsv(253, 74%, 60%)
CMYKcmyk(57.5%, 73.9%, 0%, 40%)
CIE-LABlab(26.57, 41.75, -57.65)
CIE-LCHlch(26.57, 71.18, 305.91°)
OKLaboklab(38.53% 0.0449 -0.166)
OKLCHoklch(38.53% 0.172 285.2)
XYZxyz(8.6868, 4.9408, 30.6267)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412899 #809928
analogous
#284899 #412899 #792899
triadic
#412899 #994128 #289941
tetradic
#412899 #992848 #809928 #289979
square
#412899 #992848 #809928 #289979
split-complementary
#412899 #997928 #489928
monochromatic
#180F38 #2C1B68 #412899 #5635CA #7E65D7

Accessibility & contrast

On white

10.56
#412899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#412899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412899
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412899#FFFFFF#000000##FFFFFF
##4128991.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#16475E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412899;
/* rgb */ color: rgb(65, 40, 153);
/* oklch */ color: oklch(38.5% 0.172 285.2);
Tailwind
colors: {
  custom: {
    50: '#8065b8',
    500: '#412899',
    950: '#000000',
  },
}
SCSS
$custom: #412899;
$custom-light: #8065b8;
$custom-dark: #000000;
JSON
{
  "hex": "#412899",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 253.274,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38532,
    "c": 0.17194,
    "h": 285.2
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#412899
secondary
#A8BD60
accent
#E246BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412899

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

Preview Lab → · Contrast checker → · Palette generator →

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