#512F79#512F79

#512F79 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.122 H 302.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#512F79
RGBrgb(81, 47, 121)
HSLhsl(268, 44%, 33%)
HSVhsv(268, 61%, 47%)
CMYKcmyk(33.1%, 61.2%, 0%, 52.5%)
CIE-LABlab(27.19, 31.66, -36.64)
CIE-LCHlch(27.19, 48.42, 310.83°)
OKLaboklab(38.58% 0.0652 -0.1037)
OKLCHoklch(38.58% 0.122 302.2)
XYZxyz(7.8602, 5.1628, 18.6679)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F79 #57792F
analogous
#2F3279 #512F79 #762F79
triadic
#512F79 #79512F #2F7951
tetradic
#512F79 #792F32 #57792F #2F7976
square
#512F79 #792F32 #57792F #2F7976
split-complementary
#512F79 #79762F #32792F
monochromatic
#160D21 #331E4D #512F79 #6F40A5 #8D61C2

Accessibility & contrast

On white

10.33
#512F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512F79
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F79#FFFFFF#000000##FFFFFF
##512F791.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B407B
Deuteranopia (green-blind)
#1B4077
Tritanopia (blue-blind)
#493E4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512f79;
/* rgb */ color: rgb(81, 47, 121);
/* oklch */ color: oklch(38.6% 0.122 302.2);
Tailwind
colors: {
  custom: {
    50: '#8569a0',
    500: '#512f79',
    950: '#000000',
  },
}
SCSS
$custom: #512f79;
$custom-light: #8569a0;
$custom-dark: #000000;
JSON
{
  "hex": "#512f79",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 267.568,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38583,
    "c": 0.12249,
    "h": 302.2
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#512F79
secondary
#85A85B
accent
#D45499
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #512F79

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

Preview Lab → · Contrast checker → · Palette generator →

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