#512487#512487

#512487 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.155 H 299.7°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#512487
RGBrgb(81, 36, 135)
HSLhsl(267, 58%, 34%)
HSVhsv(267, 73%, 53%)
CMYKcmyk(40%, 73.3%, 0%, 47.1%)
CIE-LABlab(26.04, 41.47, -47.30)
CIE-LCHlch(26.04, 62.91, 311.24°)
OKLaboklab(38.09% 0.077 -0.135)
OKLCHoklch(38.09% 0.155 299.7)
XYZxyz(8.3963, 4.7603, 23.3934)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512487 #5A8724
analogous
#242887 #512487 #822487
triadic
#512487 #875124 #248751
tetradic
#512487 #872428 #5A8724 #248782
square
#512487 #872428 #5A8724 #248782
split-complementary
#512487 #878224 #288724
monochromatic
#170A26 #341757 #512487 #6E31B7 #8D54D1

Accessibility & contrast

On white

10.76
#512487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#512487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512487
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512487#FFFFFF#000000##FFFFFF
##5124871.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#443C53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512487;
/* rgb */ color: rgb(81, 36, 135);
/* oklch */ color: oklch(38.1% 0.155 299.7);
Tailwind
colors: {
  custom: {
    50: '#8763ab',
    500: '#512487',
    950: '#000000',
  },
}
SCSS
$custom: #512487;
$custom-light: #8763ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512487",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 267.273,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38087,
    "c": 0.15539,
    "h": 299.7
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#512487
secondary
#88B551
accent
#E1479B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512487

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

Preview Lab → · Contrast checker → · Palette generator →

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