#412598#412598

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

Color values

HEX#412598
RGBrgb(65, 37, 152)
HSLhsl(255, 61%, 37%)
HSVhsv(255, 76%, 60%)
CMYKcmyk(57.2%, 75.7%, 0%, 40.4%)
CIE-LABlab(25.90, 43.05, -58.13)
CIE-LCHlch(25.90, 72.33, 306.52°)
OKLaboklab(38.03% 0.0476 -0.1673)
OKLCHoklch(38.03% 0.174 285.9)
XYZxyz(8.5073, 4.7135, 30.1612)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412598 #7C9825
analogous
#254298 #412598 #7B2598
triadic
#412598 #984125 #259841
tetradic
#412598 #982542 #7C9825 #25987B
square
#412598 #982542 #7C9825 #25987B
split-complementary
#412598 #987B25 #429825
monochromatic
#170D36 #2C1967 #412598 #5631C9 #7D5FD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##412598#FFFFFF#000000##FFFFFF
##4125981.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)
#00409B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#17455D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412598;
/* rgb */ color: rgb(65, 37, 152);
/* oklch */ color: oklch(38.0% 0.174 285.9);
Tailwind
colors: {
  custom: {
    50: '#8063b7',
    500: '#412598',
    950: '#000000',
  },
}
SCSS
$custom: #412598;
$custom-light: #8063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412598",
  "rgb": {
    "r": 65,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 254.609,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38034,
    "c": 0.17397,
    "h": 285.9
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#412598
secondary
#A5BD5C
accent
#E444BD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412598

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

Preview Lab → · Contrast checker → · Palette generator →

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