#412696#412696

#412696 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.170 H 286.1°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#412696
RGBrgb(65, 38, 150)
HSLhsl(254, 60%, 37%)
HSVhsv(254, 75%, 59%)
CMYKcmyk(56.7%, 74.7%, 0%, 41.2%)
CIE-LABlab(25.90, 41.92, -56.91)
CIE-LCHlch(25.90, 70.68, 306.37°)
OKLaboklab(37.97% 0.0473 -0.1638)
OKLCHoklch(37.97% 0.17 286.1)
XYZxyz(8.3765, 4.7116, 29.3163)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412696 #7B9626
analogous
#264396 #412696 #792696
triadic
#412696 #964126 #269641
tetradic
#412696 #962643 #7B9626 #269679
square
#412696 #962643 #7B9626 #269679
split-complementary
#412696 #967926 #439626
monochromatic
#170D34 #2C1A65 #412696 #5632C7 #7C60D7

Accessibility & contrast

On white

10.81
#412696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#412696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412696
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412696#FFFFFF#000000##FFFFFF
##4126961.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412696;
/* rgb */ color: rgb(65, 38, 150);
/* oklch */ color: oklch(38.0% 0.170 286.1);
Tailwind
colors: {
  custom: {
    50: '#7f63b6',
    500: '#412696',
    950: '#000000',
  },
}
SCSS
$custom: #412696;
$custom-light: #7f63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#412696",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 254.464,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37972,
    "c": 0.17046,
    "h": 286.1
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#412696
secondary
#A5BC5C
accent
#E345BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412696

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

Preview Lab → · Contrast checker → · Palette generator →

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