#512F83#512F83

#512F83 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.135 H 298.6°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#512F83
RGBrgb(81, 47, 131)
HSLhsl(264, 47%, 35%)
HSVhsv(264, 64%, 51%)
CMYKcmyk(38.2%, 64.1%, 0%, 48.6%)
CIE-LABlab(27.90, 34.41, -41.78)
CIE-LCHlch(27.90, 54.13, 309.47°)
OKLaboklab(39.32% 0.0648 -0.1188)
OKLCHoklch(39.32% 0.135 298.6)
XYZxyz(8.5056, 5.4210, 22.0666)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F83 #61832F
analogous
#2F3783 #512F83 #7B2F83
triadic
#512F83 #83512F #2F8351
tetradic
#512F83 #832F37 #61832F #2F837B
square
#512F83 #832F37 #61832F #2F837B
split-complementary
#512F83 #837B2F #37832F
monochromatic
#190F29 #351F56 #512F83 #6D3FB0 #8D65C8

Accessibility & contrast

On white

10.08
#512F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512F83
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F83#FFFFFF#000000##FFFFFF
##512F831.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512f83;
/* rgb */ color: rgb(81, 47, 131);
/* oklch */ color: oklch(39.3% 0.135 298.6);
Tailwind
colors: {
  custom: {
    50: '#8669a8',
    500: '#512f83',
    950: '#000000',
  },
}
SCSS
$custom: #512f83;
$custom-light: #8669a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512f83",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 264.286,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39325,
    "c": 0.13536,
    "h": 298.6
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#512F83
secondary
#8EAF5F
accent
#D751A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #512F83

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

Preview Lab → · Contrast checker → · Palette generator →

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