#412497#412497

#412497 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.174 H 286.2°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#412497
RGBrgb(65, 36, 151)
HSLhsl(255, 61%, 37%)
HSVhsv(255, 76%, 59%)
CMYKcmyk(57%, 76.2%, 0%, 40.8%)
CIE-LABlab(25.62, 43.27, -57.98)
CIE-LCHlch(25.62, 72.34, 306.73°)
OKLaboklab(37.81% 0.0486 -0.1669)
OKLCHoklch(37.81% 0.174 286.2)
XYZxyz(8.3951, 4.6195, 29.7214)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412497 #7A9724
analogous
#244197 #412497 #7B2497
triadic
#412497 #974124 #249741
tetradic
#412497 #972441 #7A9724 #24977B
square
#412497 #972441 #7A9724 #24977B
split-complementary
#412497 #977B24 #419724
monochromatic
#160C34 #2C1866 #412497 #5630C8 #7C5DD8

Accessibility & contrast

On white

10.91
#412497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#412497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412497
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412497#FFFFFF#000000##FFFFFF
##4124971.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#19445C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412497;
/* rgb */ color: rgb(65, 36, 151);
/* oklch */ color: oklch(37.8% 0.174 286.2);
Tailwind
colors: {
  custom: {
    50: '#8062b7',
    500: '#412497',
    950: '#000000',
  },
}
SCSS
$custom: #412497;
$custom-light: #8062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#412497",
  "rgb": {
    "r": 65,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 255.13,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37807,
    "c": 0.17382,
    "h": 286.2
  },
  "luminance": 0.0462
}

Semantic roles & 50–950 ramp

primary
#412497
secondary
#A4BD5A
accent
#E543BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #412497

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

Preview Lab → · Contrast checker → · Palette generator →

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