#412798#412798

#412798 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.172 H 285.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#412798
RGBrgb(65, 39, 152)
HSLhsl(254, 59%, 37%)
HSVhsv(254, 74%, 60%)
CMYKcmyk(57.2%, 74.3%, 0%, 40.4%)
CIE-LABlab(26.28, 41.99, -57.51)
CIE-LCHlch(26.28, 71.21, 306.13°)
OKLaboklab(38.3% 0.046 -0.1655)
OKLCHoklch(38.3% 0.172 285.5)
XYZxyz(8.5713, 4.8414, 30.1825)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412798 #7E9827
analogous
#274698 #412798 #792798
triadic
#412798 #984127 #279841
tetradic
#412798 #982746 #7E9827 #279879
square
#412798 #982746 #7E9827 #279879
split-complementary
#412798 #987927 #469827
monochromatic
#170E37 #2C1B67 #412798 #5633C9 #7D63D7

Accessibility & contrast

On white

10.67
#412798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#412798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412798
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412798#FFFFFF#000000##FFFFFF
##4127981.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#17465D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412798;
/* rgb */ color: rgb(65, 39, 152);
/* oklch */ color: oklch(38.3% 0.172 285.5);
Tailwind
colors: {
  custom: {
    50: '#8064b7',
    500: '#412798',
    950: '#000000',
  },
}
SCSS
$custom: #412798;
$custom-light: #8064b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412798",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 253.805,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.383,
    "c": 0.17181,
    "h": 285.5
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#412798
secondary
#A7BC5E
accent
#E245BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412798

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

Preview Lab → · Contrast checker → · Palette generator →

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