#512F82#512F82

#512F82 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.134 H 298.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#512F82
RGBrgb(81, 47, 130)
HSLhsl(265, 47%, 35%)
HSVhsv(265, 64%, 51%)
CMYKcmyk(37.7%, 63.8%, 0%, 49%)
CIE-LABlab(27.83, 34.13, -41.28)
CIE-LCHlch(27.83, 53.56, 309.59°)
OKLaboklab(39.25% 0.0649 -0.1173)
OKLCHoklch(39.25% 0.134 298.9)
XYZxyz(8.4381, 5.3940, 21.7113)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F82 #60822F
analogous
#2F3782 #512F82 #7B2F82
triadic
#512F82 #82512F #2F8251
tetradic
#512F82 #822F37 #60822F #2F827B
square
#512F82 #822F37 #60822F #2F827B
split-complementary
#512F82 #827B2F #37822F
monochromatic
#190E28 #351F55 #512F82 #6D3FAF #8D64C7

Accessibility & contrast

On white

10.10
#512F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#512F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F82
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F82#FFFFFF#000000##FFFFFF
##512F821.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#0C4180
Tritanopia (blue-blind)
#464154
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512f82;
/* rgb */ color: rgb(81, 47, 130);
/* oklch */ color: oklch(39.2% 0.134 298.9);
Tailwind
colors: {
  custom: {
    50: '#8669a7',
    500: '#512f82',
    950: '#000000',
  },
}
SCSS
$custom: #512f82;
$custom-light: #8669a7;
$custom-dark: #000000;
JSON
{
  "hex": "#512f82",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 264.578,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39249,
    "c": 0.13408,
    "h": 298.9
  },
  "luminance": 0.05394
}

Semantic roles & 50–950 ramp

primary
#512F82
secondary
#8EAE5F
accent
#D751A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #512F82

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

Preview Lab → · Contrast checker → · Palette generator →

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