#512FB9#512FB9

#512FB9 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.0% C 0.201 H 286.0°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#512FB9
RGBrgb(81, 47, 185)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(56.2%, 74.6%, 0%, 27.5%)
CIE-LABlab(32.45, 49.88, -67.20)
CIE-LCHlch(32.45, 83.68, 306.59°)
OKLaboklab(43.98% 0.0555 -0.1934)
OKLCHoklch(43.98% 0.201 286)
XYZxyz(13.1642, 7.2844, 46.6019)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FB9 #97B92F
analogous
#2F52B9 #512FB9 #962FB9
triadic
#512FB9 #B9512F #2FB951
tetradic
#512FB9 #B92F52 #97B92F #2FB996
square
#512FB9 #B92F52 #97B92F #2FB996
split-complementary
#512FB9 #B9962F #52B92F
monochromatic
#261657 #3C2388 #512FB9 #7252D3 #9A83DF

Accessibility & contrast

On white

8.55
#512FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#512FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FB9
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FB9#FFFFFF#000000##FFFFFF
##512FB91.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#205572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512fb9;
/* rgb */ color: rgb(81, 47, 185);
/* oklch */ color: oklch(44.0% 0.201 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d6bcf',
    500: '#512fb9',
    950: '#000000',
  },
}
SCSS
$custom: #512fb9;
$custom-light: #8d6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#512fb9",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 254.783,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4398,
    "c": 0.20124,
    "h": 286
  },
  "luminance": 0.07285
}

Semantic roles & 50–950 ramp

primary
#512FB9
secondary
#B6C97B
accent
#E345BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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