#512F85#512F85

#512F85 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.138 H 298.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#512F85
RGBrgb(81, 47, 133)
HSLhsl(264, 48%, 35%)
HSVhsv(264, 65%, 52%)
CMYKcmyk(39.1%, 64.7%, 0%, 47.8%)
CIE-LABlab(28.05, 34.97, -42.80)
CIE-LCHlch(28.05, 55.27, 309.25°)
OKLaboklab(39.48% 0.0647 -0.1218)
OKLCHoklch(39.48% 0.138 298)
XYZxyz(8.6424, 5.4757, 22.7873)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F85 #63852F
analogous
#2F3885 #512F85 #7C2F85
triadic
#512F85 #85512F #2F8551
tetradic
#512F85 #852F38 #63852F #2F857C
square
#512F85 #852F38 #63852F #2F857C
split-complementary
#512F85 #857C2F #38852F
monochromatic
#1A0F2B #351F58 #512F85 #6D3FB2 #8D66C9

Accessibility & contrast

On white

10.02
#512F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#512F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F85
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F85#FFFFFF#000000##FFFFFF
##512F851.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512f85;
/* rgb */ color: rgb(81, 47, 133);
/* oklch */ color: oklch(39.5% 0.138 298.0);
Tailwind
colors: {
  custom: {
    50: '#8669a9',
    500: '#512f85',
    950: '#000000',
  },
}
SCSS
$custom: #512f85;
$custom-light: #8669a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512f85",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 263.721,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39479,
    "c": 0.1379,
    "h": 298
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#512F85
secondary
#90B060
accent
#D750A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #512F85

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

Preview Lab → · Contrast checker → · Palette generator →

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