#512087#512087

#512087 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.160 H 300.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#512087
RGBrgb(81, 32, 135)
HSLhsl(269, 62%, 33%)
HSVhsv(269, 76%, 53%)
CMYKcmyk(40%, 76.3%, 0%, 47.1%)
CIE-LABlab(25.36, 43.41, -48.42)
CIE-LCHlch(25.36, 65.03, 311.88°)
OKLaboklab(37.6% 0.081 -0.1383)
OKLCHoklch(37.6% 0.16 300.4)
XYZxyz(8.2819, 4.5315, 23.3553)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512087 #568720
analogous
#202287 #512087 #852087
triadic
#512087 #875120 #208751
tetradic
#512087 #872022 #568720 #208785
square
#512087 #872022 #568720 #208785
split-complementary
#512087 #878520 #228720
monochromatic
#160924 #331456 #512087 #6F2CB8 #8D4DD5

Accessibility & contrast

On white

11.02
#512087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#512087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512087
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512087#FFFFFF#000000##FFFFFF
##5120871.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#453A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512087;
/* rgb */ color: rgb(81, 32, 135);
/* oklch */ color: oklch(37.6% 0.160 300.4);
Tailwind
colors: {
  custom: {
    50: '#8761ab',
    500: '#512087',
    950: '#000000',
  },
}
SCSS
$custom: #512087;
$custom-light: #8761ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512087",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 268.544,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37603,
    "c": 0.16021,
    "h": 300.4
  },
  "luminance": 0.04532
}

Semantic roles & 50–950 ramp

primary
#512087
secondary
#84B84B
accent
#E54398
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512087

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

Preview Lab → · Contrast checker → · Palette generator →

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