#512BBB#512BBB

#512BBB is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.207 H 286.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#512BBB
RGBrgb(81, 43, 187)
HSLhsl(256, 63%, 45%)
HSVhsv(256, 77%, 73%)
CMYKcmyk(56.7%, 77%, 0%, 26.7%)
CIE-LABlab(31.95, 52.40, -69.19)
CIE-LCHlch(31.95, 86.79, 307.14°)
OKLaboklab(43.69% 0.0579 -0.1992)
OKLCHoklch(43.69% 0.207 286.2)
XYZxyz(13.2242, 7.0642, 47.6708)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BBB #95BB2B
analogous
#2B4DBB #512BBB #992BBB
triadic
#512BBB #BB512B #2BBB51
tetradic
#512BBB #BB2B4D #95BB2B #2BBB99
square
#512BBB #BB2B4D #95BB2B #2BBB99
split-complementary
#512BBB #BB992B #4DBB2B
monochromatic
#261457 #3B2089 #512BBB #714DD6 #997FE2

Accessibility & contrast

On white

8.70
#512BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#512BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BBB
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BBB#FFFFFF#000000##FFFFFF
##512BBB1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0047B8
Tritanopia (blue-blind)
#1D5472
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512bbb;
/* rgb */ color: rgb(81, 43, 187);
/* oklch */ color: oklch(43.7% 0.207 286.2);
Tailwind
colors: {
  custom: {
    50: '#8e69d1',
    500: '#512bbb',
    950: '#000000',
  },
}
SCSS
$custom: #512bbb;
$custom-light: #8e69d1;
$custom-dark: #000000;
JSON
{
  "hex": "#512bbb",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 255.833,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43692,
    "c": 0.20746,
    "h": 286.2
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#512BBB
secondary
#B4CA78
accent
#E642BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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