#412898#412898

#412898 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.171 H 285.3°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#412898
RGBrgb(65, 40, 152)
HSLhsl(253, 58%, 38%)
HSVhsv(253, 74%, 60%)
CMYKcmyk(57.2%, 73.7%, 0%, 40.4%)
CIE-LABlab(26.47, 41.44, -57.20)
CIE-LCHlch(26.47, 70.63, 305.93°)
OKLaboklab(38.44% 0.0452 -0.1646)
OKLCHoklch(38.44% 0.171 285.3)
XYZxyz(8.6045, 4.9079, 30.1936)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412898 #7F9828
analogous
#284798 #412898 #792898
triadic
#412898 #984128 #289841
tetradic
#412898 #982847 #7F9828 #289879
square
#412898 #982847 #7F9828 #289879
split-complementary
#412898 #987928 #479828
monochromatic
#180F37 #2C1B68 #412898 #5635C8 #7E64D6

Accessibility & contrast

On white

10.60
#412898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#412898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412898
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412898#FFFFFF#000000##FFFFFF
##4128981.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412898;
/* rgb */ color: rgb(65, 40, 152);
/* oklch */ color: oklch(38.4% 0.171 285.3);
Tailwind
colors: {
  custom: {
    50: '#8065b7',
    500: '#412898',
    950: '#000000',
  },
}
SCSS
$custom: #412898;
$custom-light: #8065b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412898",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 253.393,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38436,
    "c": 0.1707,
    "h": 285.3
  },
  "luminance": 0.04908
}

Semantic roles & 50–950 ramp

primary
#412898
secondary
#A7BC60
accent
#E246BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412898

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

Preview Lab → · Contrast checker → · Palette generator →

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