#512B85#512B85

#512B85 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.144 H 298.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#512B85
RGBrgb(81, 43, 133)
HSLhsl(265, 51%, 35%)
HSVhsv(265, 68%, 52%)
CMYKcmyk(39.1%, 67.7%, 0%, 47.8%)
CIE-LABlab(27.21, 37.24, -44.15)
CIE-LCHlch(27.21, 57.75, 310.15°)
OKLaboklab(38.88% 0.0695 -0.1257)
OKLCHoklch(38.88% 0.144 298.9)
XYZxyz(8.4898, 5.1704, 22.7365)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B85 #5F852B
analogous
#2B3285 #512B85 #7E2B85
triadic
#512B85 #85512B #2B8551
tetradic
#512B85 #852B32 #5F852B #2B857E
square
#512B85 #852B32 #5F852B #2B857E
split-complementary
#512B85 #857E2B #32852B
monochromatic
#190D29 #351C57 #512B85 #6D3AB3 #8D5FCB

Accessibility & contrast

On white

10.32
#512B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#512B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B85
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B85#FFFFFF#000000##FFFFFF
##512B851.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#454054
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512b85;
/* rgb */ color: rgb(81, 43, 133);
/* oklch */ color: oklch(38.9% 0.144 298.9);
Tailwind
colors: {
  custom: {
    50: '#8667a9',
    500: '#512b85',
    950: '#000000',
  },
}
SCSS
$custom: #512b85;
$custom-light: #8667a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512b85",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 265.333,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38876,
    "c": 0.14368,
    "h": 298.9
  },
  "luminance": 0.05171
}

Semantic roles & 50–950 ramp

primary
#512B85
secondary
#8DB15B
accent
#DB4D9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512B85

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

Preview Lab → · Contrast checker → · Palette generator →

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