#412187#412187

#412187 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.158 H 290.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#412187
RGBrgb(65, 33, 135)
HSLhsl(259, 61%, 33%)
HSVhsv(259, 76%, 53%)
CMYKcmyk(51.9%, 75.6%, 0%, 47.1%)
CIE-LABlab(23.54, 40.10, -51.47)
CIE-LCHlch(23.54, 65.25, 307.93°)
OKLaboklab(35.87% 0.0552 -0.1478)
OKLCHoklch(35.87% 0.158 290.5)
XYZxyz(7.0958, 3.9605, 23.3075)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412187 #678721
analogous
#213487 #412187 #742187
triadic
#412187 #874121 #218741
tetradic
#412187 #872134 #678721 #218774
square
#412187 #872134 #678721 #218774
split-complementary
#412187 #877421 #348721
monochromatic
#120925 #291556 #412187 #592DB8 #784FD4

Accessibility & contrast

On white

11.72
#412187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#412187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412187
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412187#FFFFFF#000000##FFFFFF
##4121871.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#293C52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #412187;
/* rgb */ color: rgb(65, 33, 135);
/* oklch */ color: oklch(35.9% 0.158 290.5);
Tailwind
colors: {
  custom: {
    50: '#7d60ab',
    500: '#412187',
    950: '#000000',
  },
}
SCSS
$custom: #412187;
$custom-light: #7d60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412187",
  "rgb": {
    "r": 65,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 258.824,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35874,
    "c": 0.15777,
    "h": 290.5
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#412187
secondary
#96B74D
accent
#E444B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #412187

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

Preview Lab → · Contrast checker → · Palette generator →

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