#412797#412797

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

Color values

HEX#412797
RGBrgb(65, 39, 151)
HSLhsl(254, 59%, 37%)
HSVhsv(254, 74%, 59%)
CMYKcmyk(57%, 74.2%, 0%, 40.8%)
CIE-LABlab(26.18, 41.68, -57.05)
CIE-LCHlch(26.18, 70.66, 306.15°)
OKLaboklab(38.2% 0.0462 -0.1642)
OKLCHoklch(38.2% 0.171 285.7)
XYZxyz(8.4897, 4.8087, 29.7530)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412797 #7D9727
analogous
#274597 #412797 #792797
triadic
#412797 #974127 #279741
tetradic
#412797 #972745 #7D9727 #279779
square
#412797 #972745 #7D9727 #279779
split-complementary
#412797 #977927 #459727
monochromatic
#170E36 #2C1A66 #412797 #5634C8 #7D62D6

Accessibility & contrast

On white

10.70
#412797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412797
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412797#FFFFFF#000000##FFFFFF
##4127971.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#19465D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412797;
/* rgb */ color: rgb(65, 39, 151);
/* oklch */ color: oklch(38.2% 0.171 285.7);
Tailwind
colors: {
  custom: {
    50: '#8064b7',
    500: '#412797',
    950: '#000000',
  },
}
SCSS
$custom: #412797;
$custom-light: #8064b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412797",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 253.929,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38203,
    "c": 0.17059,
    "h": 285.7
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#412797
secondary
#A6BC5E
accent
#E246BE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412797

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

Preview Lab → · Contrast checker → · Palette generator →

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