#412894#412894

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

Color values

HEX#412894
RGBrgb(65, 40, 148)
HSLhsl(254, 57%, 37%)
HSVhsv(254, 73%, 58%)
CMYKcmyk(56.1%, 73%, 0%, 42%)
CIE-LABlab(26.10, 40.22, -55.35)
CIE-LCHlch(26.10, 68.42, 306.01°)
OKLaboklab(38.06% 0.0461 -0.1592)
OKLCHoklch(38.06% 0.166 286.1)
XYZxyz(8.2825, 4.7791, 28.4973)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412894 #7B9428
analogous
#284594 #412894 #772894
triadic
#412894 #944128 #289441
tetradic
#412894 #942845 #7B9428 #289477
square
#412894 #942845 #7B9428 #289477
split-complementary
#412894 #947728 #459428
monochromatic
#170E34 #2C1B64 #412894 #5635C4 #7C62D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##412894#FFFFFF#000000##FFFFFF
##4128941.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)
#004197
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#1C455B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412894;
/* rgb */ color: rgb(65, 40, 148);
/* oklch */ color: oklch(38.1% 0.166 286.1);
Tailwind
colors: {
  custom: {
    50: '#7f64b4',
    500: '#412894',
    950: '#000000',
  },
}
SCSS
$custom: #412894;
$custom-light: #7f64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#412894",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 253.889,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38055,
    "c": 0.16575,
    "h": 286.1
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#412894
secondary
#A5BA5E
accent
#E147BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412894

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

Preview Lab → · Contrast checker → · Palette generator →

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