#512B79#512B79

#512B79 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.129 H 303.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#512B79
RGBrgb(81, 43, 121)
HSLhsl(269, 48%, 32%)
HSVhsv(269, 64%, 47%)
CMYKcmyk(33.1%, 64.5%, 0%, 52.5%)
CIE-LABlab(26.33, 33.98, -38.03)
CIE-LCHlch(26.33, 51.00, 311.78°)
OKLaboklab(37.95% 0.0705 -0.1078)
OKLCHoklch(37.95% 0.129 303.2)
XYZxyz(7.7076, 4.8576, 18.6170)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B79 #53792B
analogous
#2B2C79 #512B79 #782B79
triadic
#512B79 #79512B #2B7951
tetradic
#512B79 #792B2C #53792B #2B7978
square
#512B79 #792B2C #53792B #2B7978
split-complementary
#512B79 #79782B #2C792B
monochromatic
#150B1F #331B4C #512B79 #6F3BA6 #8E5AC4

Accessibility & contrast

On white

10.65
#512B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#512B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B79
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B79#FFFFFF#000000##FFFFFF
##512B791.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#153E77
Tritanopia (blue-blind)
#493B4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512b79;
/* rgb */ color: rgb(81, 43, 121);
/* oklch */ color: oklch(38.0% 0.129 303.2);
Tailwind
colors: {
  custom: {
    50: '#8566a0',
    500: '#512b79',
    950: '#000000',
  },
}
SCSS
$custom: #512b79;
$custom-light: #8566a0;
$custom-dark: #000000;
JSON
{
  "hex": "#512b79",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 269.231,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3795,
    "c": 0.12881,
    "h": 303.2
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#512B79
secondary
#81AA56
accent
#D75196
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #512B79

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

Preview Lab → · Contrast checker → · Palette generator →

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