#412796#412796

#412796 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.169 H 285.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#412796
RGBrgb(65, 39, 150)
HSLhsl(254, 59%, 37%)
HSVhsv(254, 74%, 59%)
CMYKcmyk(56.7%, 74%, 0%, 41.2%)
CIE-LABlab(26.09, 41.38, -56.60)
CIE-LCHlch(26.09, 70.11, 306.17°)
OKLaboklab(38.11% 0.0465 -0.1629)
OKLCHoklch(38.11% 0.169 285.9)
XYZxyz(8.4089, 4.7764, 29.3271)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412796 #7C9627
analogous
#274596 #412796 #792796
triadic
#412796 #964127 #279641
tetradic
#412796 #962745 #7C9627 #279679
square
#412796 #962745 #7C9627 #279679
split-complementary
#412796 #967927 #459627
monochromatic
#170E35 #2C1A65 #412796 #5634C7 #7D61D6

Accessibility & contrast

On white

10.74
#412796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#412796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412796
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412796#FFFFFF#000000##FFFFFF
##4127961.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#1A455C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412796;
/* rgb */ color: rgb(65, 39, 150);
/* oklch */ color: oklch(38.1% 0.169 285.9);
Tailwind
colors: {
  custom: {
    50: '#7f64b6',
    500: '#412796',
    950: '#000000',
  },
}
SCSS
$custom: #412796;
$custom-light: #7f64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#412796",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 254.054,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38107,
    "c": 0.16935,
    "h": 285.9
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

primary
#412796
secondary
#A5BC5D
accent
#E246BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412796

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

Preview Lab → · Contrast checker → · Palette generator →

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