#412987#412987

#412987 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.148 H 288.8°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#412987
RGBrgb(65, 41, 135)
HSLhsl(255, 53%, 35%)
HSVhsv(255, 70%, 53%)
CMYKcmyk(51.9%, 69.6%, 0%, 47.1%)
CIE-LABlab(25.13, 35.67, -48.86)
CIE-LCHlch(25.13, 60.50, 306.13°)
OKLaboklab(37.01% 0.0476 -0.1402)
OKLCHoklch(37.01% 0.148 288.8)
XYZxyz(7.3448, 4.4586, 23.3906)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412987 #6F8729
analogous
#294087 #412987 #702987
triadic
#412987 #874129 #298741
tetradic
#412987 #872940 #6F8729 #298770
square
#412987 #872940 #6F8729 #298770
split-complementary
#412987 #877029 #408729
monochromatic
#140C29 #2A1B58 #412987 #5837B6 #7A5DCE

Accessibility & contrast

On white

11.10
#412987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#412987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412987
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412987#FFFFFF#000000##FFFFFF
##4129871.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#284154
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412987;
/* rgb */ color: rgb(65, 41, 135);
/* oklch */ color: oklch(37.0% 0.148 288.8);
Tailwind
colors: {
  custom: {
    50: '#7d64ab',
    500: '#412987',
    950: '#000000',
  },
}
SCSS
$custom: #412987;
$custom-light: #7d64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412987",
  "rgb": {
    "r": 65,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 255.319,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37008,
    "c": 0.14805,
    "h": 288.8
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#412987
secondary
#9CB359
accent
#DD4BB8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #412987

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

Preview Lab → · Contrast checker → · Palette generator →

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