#512BBD#512BBD

#512BBD is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.210 H 285.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#512BBD
RGBrgb(81, 43, 189)
HSLhsl(256, 63%, 45%)
HSVhsv(256, 77%, 74%)
CMYKcmyk(57.1%, 77.2%, 0%, 25.9%)
CIE-LABlab(32.15, 52.96, -70.05)
CIE-LCHlch(32.15, 87.82, 307.09°)
OKLaboklab(43.89% 0.0573 -0.2017)
OKLCHoklch(43.89% 0.21 285.9)
XYZxyz(13.4397, 7.1504, 48.8062)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BBD #97BD2B
analogous
#2B4EBD #512BBD #9A2BBD
triadic
#512BBD #BD512B #2BBD51
tetradic
#512BBD #BD2B4E #97BD2B #2BBD9A
square
#512BBD #BD2B4E #97BD2B #2BBD9A
split-complementary
#512BBD #BD9A2B #4EBD2B
monochromatic
#261459 #3C208B #512BBD #724ED7 #9A80E2

Accessibility & contrast

On white

8.64
#512BBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#512BBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BBD
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BBD#FFFFFF#000000##FFFFFF
##512BBD1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#1A5573
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512bbd;
/* rgb */ color: rgb(81, 43, 189);
/* oklch */ color: oklch(43.9% 0.210 285.9);
Tailwind
colors: {
  custom: {
    50: '#8e69d2',
    500: '#512bbd',
    950: '#000000',
  },
}
SCSS
$custom: #512bbd;
$custom-light: #8e69d2;
$custom-dark: #000000;
JSON
{
  "hex": "#512bbd",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 189
  },
  "hsl": {
    "h": 255.616,
    "s": 62.931,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43886,
    "c": 0.20973,
    "h": 285.9
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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