#512585#512585

#512585 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.152 H 300.2°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#512585
RGBrgb(81, 37, 133)
HSLhsl(268, 56%, 33%)
HSVhsv(268, 72%, 52%)
CMYKcmyk(39.1%, 72.2%, 0%, 47.8%)
CIE-LABlab(26.06, 40.44, -46.03)
CIE-LCHlch(26.06, 61.27, 311.30°)
OKLaboklab(38.05% 0.0763 -0.1312)
OKLCHoklch(38.05% 0.152 300.2)
XYZxyz(8.2875, 4.7658, 22.6690)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512585 #598525
analogous
#252985 #512585 #812585
triadic
#512585 #855125 #258551
tetradic
#512585 #852529 #598525 #258581
square
#512585 #852529 #598525 #258581
split-complementary
#512585 #858125 #298525
monochromatic
#170A25 #341855 #512585 #6E32B5 #8D55D0

Accessibility & contrast

On white

10.75
#512585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512585
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512585#FFFFFF#000000##FFFFFF
##5125851.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#453C52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512585;
/* rgb */ color: rgb(81, 37, 133);
/* oklch */ color: oklch(38.0% 0.152 300.2);
Tailwind
colors: {
  custom: {
    50: '#8763a9',
    500: '#512585',
    950: '#000000',
  },
}
SCSS
$custom: #512585;
$custom-light: #8763a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512585",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 267.5,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38047,
    "c": 0.1518,
    "h": 300.2
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

primary
#512585
secondary
#87B452
accent
#E0489A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512585

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

Preview Lab → · Contrast checker → · Palette generator →

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