#512BB7#512BB7

#512BB7 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.3% C 0.203 H 286.9°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#512BB7
RGBrgb(81, 43, 183)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 77%, 72%)
CMYKcmyk(55.7%, 76.5%, 0%, 28.2%)
CIE-LABlab(31.57, 51.27, -67.45)
CIE-LCHlch(31.57, 84.73, 307.24°)
OKLaboklab(43.31% 0.059 -0.1941)
OKLCHoklch(43.31% 0.203 286.9)
XYZxyz(12.8019, 6.8953, 45.4469)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BB7 #91B72B
analogous
#2B4BB7 #512BB7 #972BB7
triadic
#512BB7 #B7512B #2BB751
tetradic
#512BB7 #B72B4B #91B72B #2BB797
square
#512BB7 #B72B4B #91B72B #2BB797
split-complementary
#512BB7 #B7972B #4BB72B
monochromatic
#251454 #3B1F85 #512BB7 #704BD5 #977CE0

Accessibility & contrast

On white

8.83
#512BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#512BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BB7
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BB7#FFFFFF#000000##FFFFFF
##512BB71.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#235370
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #512bb7;
/* rgb */ color: rgb(81, 43, 183);
/* oklch */ color: oklch(43.3% 0.203 286.9);
Tailwind
colors: {
  custom: {
    50: '#8d69ce',
    500: '#512bb7',
    950: '#000000',
  },
}
SCSS
$custom: #512bb7;
$custom-light: #8d69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#512bb7",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 256.286,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.20292,
    "h": 286.9
  },
  "luminance": 0.06896
}

Semantic roles & 50–950 ramp

primary
#512BB7
secondary
#B2C975
accent
#E543B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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