#512488#512488

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

Color values

HEX#512488
RGBrgb(81, 36, 136)
HSLhsl(267, 58%, 34%)
HSVhsv(267, 74%, 53%)
CMYKcmyk(40.4%, 73.5%, 0%, 46.7%)
CIE-LABlab(26.12, 41.74, -47.79)
CIE-LCHlch(26.12, 63.45, 311.13°)
OKLaboklab(38.17% 0.0768 -0.1364)
OKLCHoklch(38.17% 0.157 299.4)
XYZxyz(8.4670, 4.7886, 23.7660)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512488 #5B8824
analogous
#242988 #512488 #832488
triadic
#512488 #885124 #248851
tetradic
#512488 #882429 #5B8824 #248883
square
#512488 #882429 #5B8824 #248883
split-complementary
#512488 #888324 #298824
monochromatic
#170A27 #341758 #512488 #6E31B8 #8D55D2

Accessibility & contrast

On white

10.73
#512488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512488
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512488#FFFFFF#000000##FFFFFF
##5124881.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#443D53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512488;
/* rgb */ color: rgb(81, 36, 136);
/* oklch */ color: oklch(38.2% 0.157 299.4);
Tailwind
colors: {
  custom: {
    50: '#8763ab',
    500: '#512488',
    950: '#000000',
  },
}
SCSS
$custom: #512488;
$custom-light: #8763ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512488",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 267,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38172,
    "c": 0.15655,
    "h": 299.4
  },
  "luminance": 0.04789
}

Semantic roles & 50–950 ramp

primary
#512488
secondary
#89B652
accent
#E1469C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512488

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

Preview Lab → · Contrast checker → · Palette generator →

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