#512E85#512E85

#512E85 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.139 H 298.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#512E85
RGBrgb(81, 46, 133)
HSLhsl(264, 49%, 35%)
HSVhsv(264, 65%, 52%)
CMYKcmyk(39.1%, 65.4%, 0%, 47.8%)
CIE-LABlab(27.84, 35.54, -43.14)
CIE-LCHlch(27.84, 55.90, 309.49°)
OKLaboklab(39.32% 0.0659 -0.1228)
OKLCHoklch(39.32% 0.139 298.2)
XYZxyz(8.6029, 5.3967, 22.7742)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E85 #62852E
analogous
#2E3785 #512E85 #7C2E85
triadic
#512E85 #85512E #2E8551
tetradic
#512E85 #852E37 #62852E #2E857C
square
#512E85 #852E37 #62852E #2E857C
split-complementary
#512E85 #857C2E #37852E
monochromatic
#1A0F2A #351E58 #512E85 #6D3EB2 #8D64C9

Accessibility & contrast

On white

10.10
#512E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#512E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E85
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E85#FFFFFF#000000##FFFFFF
##512E851.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#014183
Tritanopia (blue-blind)
#454155
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512e85;
/* rgb */ color: rgb(81, 46, 133);
/* oklch */ color: oklch(39.3% 0.139 298.2);
Tailwind
colors: {
  custom: {
    50: '#8669a9',
    500: '#512e85',
    950: '#000000',
  },
}
SCSS
$custom: #512e85;
$custom-light: #8669a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512e85",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 264.138,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39325,
    "c": 0.13937,
    "h": 298.2
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#512E85
secondary
#8FB05F
accent
#D850A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512E85

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

Preview Lab → · Contrast checker → · Palette generator →

#512E85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva