#512F76#512F76

#512F76 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.4% C 0.119 H 303.4°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#512F76
RGBrgb(81, 47, 118)
HSLhsl(269, 43%, 32%)
HSVhsv(269, 60%, 46%)
CMYKcmyk(31.4%, 60.2%, 0%, 53.7%)
CIE-LABlab(26.99, 30.85, -35.06)
CIE-LCHlch(26.99, 46.70, 311.34°)
OKLaboklab(38.37% 0.0652 -0.0991)
OKLCHoklch(38.37% 0.119 303.4)
XYZxyz(7.6791, 5.0904, 17.7140)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F76 #54762F
analogous
#2F3176 #512F76 #742F76
triadic
#512F76 #76512F #2F7651
tetradic
#512F76 #762F31 #54762F #2F7674
square
#512F76 #762F31 #54762F #2F7674
split-complementary
#512F76 #76742F #31762F
monochromatic
#150C1E #331E4A #512F76 #6F40A2 #8E60C0

Accessibility & contrast

On white

10.41
#512F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#512F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F76
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F76#FFFFFF#000000##FFFFFF
##512F761.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103F78
Deuteranopia (green-blind)
#1F4074
Tritanopia (blue-blind)
#4A3D4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512f76;
/* rgb */ color: rgb(81, 47, 118);
/* oklch */ color: oklch(38.4% 0.119 303.4);
Tailwind
colors: {
  custom: {
    50: '#84699e',
    500: '#512f76',
    950: '#000000',
  },
}
SCSS
$custom: #512f76;
$custom-light: #84699e;
$custom-dark: #000000;
JSON
{
  "hex": "#512f76",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 268.732,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38369,
    "c": 0.11861,
    "h": 303.4
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#512F76
secondary
#82A75A
accent
#D35597
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512F76

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

Preview Lab → · Contrast checker → · Palette generator →

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