#412387#412387

#412387 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.155 H 290.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#412387
RGBrgb(65, 35, 135)
HSLhsl(258, 59%, 33%)
HSVhsv(258, 74%, 53%)
CMYKcmyk(51.9%, 74.1%, 0%, 47.1%)
CIE-LABlab(23.92, 39.04, -50.85)
CIE-LCHlch(23.92, 64.11, 307.52°)
OKLaboklab(36.14% 0.0534 -0.146)
OKLCHoklch(36.14% 0.155 290.1)
XYZxyz(7.1529, 4.0748, 23.3266)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412387 #698723
analogous
#233787 #412387 #732387
triadic
#412387 #874123 #238741
tetradic
#412387 #872337 #698723 #238773
square
#412387 #872337 #698723 #238773
split-complementary
#412387 #877323 #378723
monochromatic
#120A26 #2A1656 #412387 #5830B8 #7952D2

Accessibility & contrast

On white

11.57
#412387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#412387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412387
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412387#FFFFFF#000000##FFFFFF
##4123871.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#293D53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #412387;
/* rgb */ color: rgb(65, 35, 135);
/* oklch */ color: oklch(36.1% 0.155 290.1);
Tailwind
colors: {
  custom: {
    50: '#7d61ab',
    500: '#412387',
    950: '#000000',
  },
}
SCSS
$custom: #412387;
$custom-light: #7d61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412387",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 258,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3614,
    "c": 0.15546,
    "h": 290.1
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#412387
secondary
#97B650
accent
#E246B3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412387

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

Preview Lab → · Contrast checker → · Palette generator →

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