#512FA9#512FA9

#512FA9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.182 H 289.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#512FA9
RGBrgb(81, 47, 169)
HSLhsl(257, 56%, 42%)
HSVhsv(257, 72%, 66%)
CMYKcmyk(52.1%, 72.2%, 0%, 33.7%)
CIE-LABlab(30.99, 45.26, -60.05)
CIE-LCHlch(30.99, 75.19, 307.01°)
OKLaboklab(42.5% 0.0592 -0.1725)
OKLCHoklch(42.5% 0.182 289)
XYZxyz(11.5692, 6.6464, 38.2017)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FA9 #87A92F
analogous
#2F4AA9 #512FA9 #8E2FA9
triadic
#512FA9 #A9512F #2FA951
tetradic
#512FA9 #A92F4A #87A92F #2FA98E
square
#512FA9 #A92F4A #87A92F #2FA98E
split-complementary
#512FA9 #A98E2F #4AA92F
monochromatic
#231449 #3A2279 #512FA9 #6D49CC #9479DA

Accessibility & contrast

On white

9.02
#512FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#512FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FA9
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FA9#FFFFFF#000000##FFFFFF
##512FA91.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#314F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512fa9;
/* rgb */ color: rgb(81, 47, 169);
/* oklch */ color: oklch(42.5% 0.182 289.0);
Tailwind
colors: {
  custom: {
    50: '#8b6bc4',
    500: '#512fa9',
    950: '#000000',
  },
}
SCSS
$custom: #512fa9;
$custom-light: #8b6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#512fa9",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 256.721,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42504,
    "c": 0.18237,
    "h": 289
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#512FA9
secondary
#ACC272
accent
#E048B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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