#512FA0#512FA0

#512FA0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.172 H 290.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#512FA0
RGBrgb(81, 47, 160)
HSLhsl(258, 55%, 41%)
HSVhsv(258, 71%, 63%)
CMYKcmyk(49.4%, 70.6%, 0%, 37.3%)
CIE-LABlab(30.21, 42.66, -55.89)
CIE-LCHlch(30.21, 70.32, 307.35°)
OKLaboklab(41.71% 0.061 -0.1603)
OKLCHoklch(41.71% 0.172 290.8)
XYZxyz(10.7532, 6.3200, 33.9042)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FA0 #7EA02F
analogous
#2F46A0 #512FA0 #892FA0
triadic
#512FA0 #A0512F #2FA051
tetradic
#512FA0 #A02F46 #7EA02F #2FA089
square
#512FA0 #A02F46 #7EA02F #2FA089
split-complementary
#512FA0 #A0892F #46A02F
monochromatic
#211341 #392171 #512FA0 #6C44C8 #9173D6

Accessibility & contrast

On white

9.28
#512FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#512FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FA0
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FA0#FFFFFF#000000##FFFFFF
##512FA01.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#374C64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512fa0;
/* rgb */ color: rgb(81, 47, 160);
/* oklch */ color: oklch(41.7% 0.172 290.8);
Tailwind
colors: {
  custom: {
    50: '#896abd',
    500: '#512fa0',
    950: '#000000',
  },
}
SCSS
$custom: #512fa0;
$custom-light: #896abd;
$custom-dark: #000000;
JSON
{
  "hex": "#512fa0",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 258.053,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41706,
    "c": 0.17152,
    "h": 290.8
  },
  "luminance": 0.0632
}

Semantic roles & 50–950 ramp

primary
#512FA0
secondary
#A5BE6D
accent
#DE4AB1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #512FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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