#412794#412794

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

Color values

HEX#412794
RGBrgb(65, 39, 148)
HSLhsl(254, 58%, 37%)
HSVhsv(254, 74%, 58%)
CMYKcmyk(56.1%, 73.6%, 0%, 42%)
CIE-LABlab(25.90, 40.77, -55.67)
CIE-LCHlch(25.90, 69.01, 306.22°)
OKLaboklab(37.92% 0.0469 -0.1602)
OKLCHoklch(37.92% 0.167 286.3)
XYZxyz(8.2492, 4.7125, 28.4862)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412794 #7A9427
analogous
#274494 #412794 #782794
triadic
#412794 #944127 #279441
tetradic
#412794 #942744 #7A9427 #279478
square
#412794 #942744 #7A9427 #279478
split-complementary
#412794 #947827 #449427
monochromatic
#160D33 #2C1A64 #412794 #5634C4 #7C60D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##412794#FFFFFF#000000##FFFFFF
##4127941.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)
#004097
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#1C445B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412794;
/* rgb */ color: rgb(65, 39, 148);
/* oklch */ color: oklch(37.9% 0.167 286.3);
Tailwind
colors: {
  custom: {
    50: '#7f64b4',
    500: '#412794',
    950: '#000000',
  },
}
SCSS
$custom: #412794;
$custom-light: #7f64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#412794",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 254.312,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37916,
    "c": 0.16689,
    "h": 286.3
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#412794
secondary
#A4BB5C
accent
#E246BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412794

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

Preview Lab → · Contrast checker → · Palette generator →

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