#412793#412793

#412793 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.166 H 286.5°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#412793
RGBrgb(65, 39, 147)
HSLhsl(254, 58%, 36%)
HSVhsv(254, 73%, 58%)
CMYKcmyk(55.8%, 73.5%, 0%, 42.4%)
CIE-LABlab(25.81, 40.47, -55.21)
CIE-LCHlch(25.81, 68.46, 306.24°)
OKLaboklab(37.82% 0.0471 -0.1588)
OKLCHoklch(37.82% 0.166 286.5)
XYZxyz(8.1704, 4.6810, 28.0711)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412793 #799327
analogous
#274393 #412793 #772793
triadic
#412793 #934127 #279341
tetradic
#412793 #932743 #799327 #279377
square
#412793 #932743 #799327 #279377
split-complementary
#412793 #937727 #439327
monochromatic
#160D32 #2C1A63 #412793 #5634C3 #7C60D5

Accessibility & contrast

On white

10.85
#412793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412793
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412793#FFFFFF#000000##FFFFFF
##4127931.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003A91
Tritanopia (blue-blind)
#1E445A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412793;
/* rgb */ color: rgb(65, 39, 147);
/* oklch */ color: oklch(37.8% 0.166 286.5);
Tailwind
colors: {
  custom: {
    50: '#7f64b4',
    500: '#412793',
    950: '#000000',
  },
}
SCSS
$custom: #412793;
$custom-light: #7f64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#412793",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 254.444,
    "s": 58.065,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37821,
    "c": 0.16566,
    "h": 286.5
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#412793
secondary
#A3BA5C
accent
#E147BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412793

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

Preview Lab → · Contrast checker → · Palette generator →

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