#512F72#512F72

#512F72 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.1% C 0.113 H 305.1°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#512F72
RGBrgb(81, 47, 114)
HSLhsl(270, 42%, 32%)
HSVhsv(270, 59%, 45%)
CMYKcmyk(28.9%, 58.8%, 0%, 55.3%)
CIE-LABlab(26.73, 29.78, -32.94)
CIE-LCHlch(26.73, 44.40, 312.12°)
OKLaboklab(38.09% 0.0651 -0.0928)
OKLCHoklch(38.09% 0.113 305.1)
XYZxyz(7.4465, 4.9973, 16.4886)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F72 #50722F
analogous
#302F72 #512F72 #722F72
triadic
#512F72 #72512F #2F7251
tetradic
#512F72 #72302F #50722F #2F7272
square
#512F72 #72302F #50722F #2F7272
split-complementary
#512F72 #72722F #2F7230
monochromatic
#130B1B #321D47 #512F72 #70419D #8E5FBD

Accessibility & contrast

On white

10.50
#512F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#512F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F72
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F72#FFFFFF#000000##FFFFFF
##512F721.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E74
Deuteranopia (green-blind)
#223F70
Tritanopia (blue-blind)
#4B3C4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512f72;
/* rgb */ color: rgb(81, 47, 114);
/* oklch */ color: oklch(38.1% 0.113 305.1);
Tailwind
colors: {
  custom: {
    50: '#84699b',
    500: '#512f72',
    950: '#000000',
  },
}
SCSS
$custom: #512f72;
$custom-light: #84699b;
$custom-dark: #000000;
JSON
{
  "hex": "#512f72",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 270.448,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38091,
    "c": 0.11341,
    "h": 305.1
  },
  "luminance": 0.04997
}

Semantic roles & 50–950 ramp

primary
#512F72
secondary
#7EA35A
accent
#D15693
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512F72

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

Preview Lab → · Contrast checker → · Palette generator →

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