#412687#412687

#412687 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.152 H 289.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#412687
RGBrgb(65, 38, 135)
HSLhsl(257, 56%, 34%)
HSVhsv(257, 72%, 53%)
CMYKcmyk(51.9%, 71.9%, 0%, 47.1%)
CIE-LABlab(24.51, 37.39, -49.88)
CIE-LCHlch(24.51, 62.34, 306.85°)
OKLaboklab(36.56% 0.0506 -0.1432)
OKLCHoklch(36.56% 0.152 289.5)
XYZxyz(7.2450, 4.2590, 23.3573)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412687 #6C8726
analogous
#263C87 #412687 #722687
triadic
#412687 #874126 #268741
tetradic
#412687 #87263C #6C8726 #268772
square
#412687 #87263C #6C8726 #268772
split-complementary
#412687 #877226 #3C8726
monochromatic
#130B27 #2A1957 #412687 #5833B7 #7958D0

Accessibility & contrast

On white

11.34
#412687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#412687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412687
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412687#FFFFFF#000000##FFFFFF
##4126871.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#283F53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #412687;
/* rgb */ color: rgb(65, 38, 135);
/* oklch */ color: oklch(36.6% 0.152 289.5);
Tailwind
colors: {
  custom: {
    50: '#7d63ab',
    500: '#412687',
    950: '#000000',
  },
}
SCSS
$custom: #412687;
$custom-light: #7d63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#412687",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 256.701,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36562,
    "c": 0.15184,
    "h": 289.5
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#412687
secondary
#9AB554
accent
#DF48B5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #412687

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

Preview Lab → · Contrast checker → · Palette generator →

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