#512588#512588

#512588 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.155 H 299.2°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#512588
RGBrgb(81, 37, 136)
HSLhsl(267, 57%, 34%)
HSVhsv(267, 73%, 53%)
CMYKcmyk(40.4%, 72.8%, 0%, 46.7%)
CIE-LABlab(26.30, 41.24, -47.50)
CIE-LCHlch(26.30, 62.90, 310.96°)
OKLaboklab(38.3% 0.0757 -0.1356)
OKLCHoklch(38.3% 0.155 299.2)
XYZxyz(8.4977, 4.8499, 23.7762)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512588 #5C8825
analogous
#252B88 #512588 #832588
triadic
#512588 #885125 #258851
tetradic
#512588 #88252B #5C8825 #258883
square
#512588 #88252B #5C8825 #258883
split-complementary
#512588 #888325 #2B8825
monochromatic
#180B28 #341858 #512588 #6E32B8 #8D56D1

Accessibility & contrast

On white

10.66
#512588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#512588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512588
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512588#FFFFFF#000000##FFFFFF
##5125881.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512588;
/* rgb */ color: rgb(81, 37, 136);
/* oklch */ color: oklch(38.3% 0.155 299.2);
Tailwind
colors: {
  custom: {
    50: '#8763ab',
    500: '#512588',
    950: '#000000',
  },
}
SCSS
$custom: #512588;
$custom-light: #8763ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512588",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 266.667,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38299,
    "c": 0.1553,
    "h": 299.2
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#512588
secondary
#8AB653
accent
#E0479C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512588

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

Preview Lab → · Contrast checker → · Palette generator →

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