#512B72#512B72

#512B72 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.120 H 306.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#512B72
RGBrgb(81, 43, 114)
HSLhsl(272, 45%, 31%)
HSVhsv(272, 62%, 45%)
CMYKcmyk(28.9%, 62.3%, 0%, 55.3%)
CIE-LABlab(25.84, 32.14, -34.36)
CIE-LCHlch(25.84, 47.04, 313.09°)
OKLaboklab(37.44% 0.0707 -0.097)
OKLCHoklch(37.44% 0.12 306.1)
XYZxyz(7.2938, 4.6921, 16.4377)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B72 #4C722B
analogous
#2D2B72 #512B72 #722B6F
triadic
#512B72 #72512B #2B7251
tetradic
#512B72 #722D2B #4C722B #2B6F72
square
#512B72 #722D2B #4C722B #2B6F72
split-complementary
#512B72 #6F722B #2B722D
monochromatic
#120919 #311A46 #512B72 #713C9E #8F58C0

Accessibility & contrast

On white

10.83
#512B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#512B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B72
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B72#FFFFFF#000000##FFFFFF
##512B721.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3C74
Deuteranopia (green-blind)
#1E3D70
Tritanopia (blue-blind)
#4C394A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512b72;
/* rgb */ color: rgb(81, 43, 114);
/* oklch */ color: oklch(37.4% 0.120 306.1);
Tailwind
colors: {
  custom: {
    50: '#84669b',
    500: '#512b72',
    950: '#000000',
  },
}
SCSS
$custom: #512b72;
$custom-light: #84669b;
$custom-dark: #000000;
JSON
{
  "hex": "#512b72",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 272.113,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37441,
    "c": 0.12006,
    "h": 306.1
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#512B72
secondary
#7AA455
accent
#D5538F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512B72

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

Preview Lab → · Contrast checker → · Palette generator →

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