#412698#412698

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

Color values

HEX#412698
RGBrgb(65, 38, 152)
HSLhsl(254, 60%, 37%)
HSVhsv(254, 75%, 60%)
CMYKcmyk(57.2%, 75%, 0%, 40.4%)
CIE-LABlab(26.09, 42.52, -57.82)
CIE-LCHlch(26.09, 71.77, 306.33°)
OKLaboklab(38.17% 0.0468 -0.1664)
OKLCHoklch(38.17% 0.173 285.7)
XYZxyz(8.5389, 4.7766, 30.1717)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412698 #7D9826
analogous
#264498 #412698 #7A2698
triadic
#412698 #984126 #269841
tetradic
#412698 #982644 #7D9826 #26987A
square
#412698 #982644 #7D9826 #26987A
split-complementary
#412698 #987A26 #449826
monochromatic
#170E36 #2C1A67 #412698 #5632C9 #7D61D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##412698#FFFFFF#000000##FFFFFF
##4126981.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)
#00419B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#17455D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412698;
/* rgb */ color: rgb(65, 38, 152);
/* oklch */ color: oklch(38.2% 0.173 285.7);
Tailwind
colors: {
  custom: {
    50: '#8063b7',
    500: '#412698',
    950: '#000000',
  },
}
SCSS
$custom: #412698;
$custom-light: #8063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412698",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 254.211,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38166,
    "c": 0.1729,
    "h": 285.7
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

primary
#412698
secondary
#A6BD5D
accent
#E345BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412698

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

Preview Lab → · Contrast checker → · Palette generator →

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