#512F99#512F99

#512F99 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.163 H 292.5°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#512F99
RGBrgb(81, 47, 153)
HSLhsl(259, 53%, 39%)
HSVhsv(259, 69%, 60%)
CMYKcmyk(47.1%, 69.3%, 0%, 40%)
CIE-LABlab(29.62, 40.65, -52.59)
CIE-LCHlch(29.62, 66.47, 307.70°)
OKLaboklab(41.1% 0.0623 -0.1506)
OKLCHoklch(41.1% 0.163 292.5)
XYZxyz(10.1580, 6.0819, 30.7695)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F99 #77992F
analogous
#2F4299 #512F99 #862F99
triadic
#512F99 #99512F #2F9951
tetradic
#512F99 #992F42 #77992F #2F9986
square
#512F99 #992F42 #77992F #2F9986
split-complementary
#512F99 #99862F #42992F
monochromatic
#1F123B #38216A #512F99 #6B41C5 #8F6FD3

Accessibility & contrast

On white

9.47
#512F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#512F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F99
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F99#FFFFFF#000000##FFFFFF
##512F991.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#3B4960
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #512f99;
/* rgb */ color: rgb(81, 47, 153);
/* oklch */ color: oklch(41.1% 0.163 292.5);
Tailwind
colors: {
  custom: {
    50: '#886ab8',
    500: '#512f99',
    950: '#000000',
  },
}
SCSS
$custom: #512f99;
$custom-light: #886ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#512f99",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 259.245,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41103,
    "c": 0.16296,
    "h": 292.5
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#512F99
secondary
#A0BA69
accent
#DC4BAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #512F99

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

Preview Lab → · Contrast checker → · Palette generator →

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