#512497#512497

#512497 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.174 H 294.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#512497
RGBrgb(81, 36, 151)
HSLhsl(263, 61%, 37%)
HSVhsv(263, 76%, 59%)
CMYKcmyk(46.4%, 76.2%, 0%, 40.8%)
CIE-LABlab(27.42, 45.76, -54.95)
CIE-LCHlch(27.42, 71.51, 309.78°)
OKLaboklab(39.49% 0.0733 -0.1575)
OKLCHoklch(39.49% 0.174 294.9)
XYZxyz(9.6086, 5.2452, 29.7783)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512497 #6A9724
analogous
#243197 #512497 #8B2497
triadic
#512497 #975124 #249751
tetradic
#512497 #972431 #6A9724 #24978B
square
#512497 #972431 #6A9724 #24978B
split-complementary
#512497 #978B24 #319724
monochromatic
#1C0C34 #361866 #512497 #6C30C8 #8D5DD8

Accessibility & contrast

On white

10.25
#512497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#512497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512497
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512497#FFFFFF#000000##FFFFFF
##5124971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#3D435C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512497;
/* rgb */ color: rgb(81, 36, 151);
/* oklch */ color: oklch(39.5% 0.174 294.9);
Tailwind
colors: {
  custom: {
    50: '#8964b7',
    500: '#512497',
    950: '#000000',
  },
}
SCSS
$custom: #512497;
$custom-light: #8964b7;
$custom-dark: #000000;
JSON
{
  "hex": "#512497",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 263.478,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39491,
    "c": 0.17369,
    "h": 294.9
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#512497
secondary
#96BD5A
accent
#E543A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512497

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

Preview Lab → · Contrast checker → · Palette generator →

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