#512DBC#512DBC

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

Color values

HEX#512DBC
RGBrgb(81, 45, 188)
HSLhsl(255, 61%, 46%)
HSVhsv(255, 76%, 74%)
CMYKcmyk(56.9%, 76.1%, 0%, 26.3%)
CIE-LABlab(32.38, 51.72, -69.07)
CIE-LCHlch(32.38, 86.29, 306.83°)
OKLaboklab(44.02% 0.0562 -0.1989)
OKLCHoklch(44.02% 0.207 285.8)
XYZxyz(13.4061, 7.2562, 48.2614)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DBC #98BC2D
analogous
#2D50BC #512DBC #982DBC
triadic
#512DBC #BC512D #2DBC51
tetradic
#512DBC #BC2D50 #98BC2D #2DBC98
square
#512DBC #BC2D50 #98BC2D #2DBC98
split-complementary
#512DBC #BC982D #50BC2D
monochromatic
#261559 #3C218B #512DBC #7251D5 #9A82E1

Accessibility & contrast

On white

8.57
#512DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#512DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DBC
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DBC#FFFFFF#000000##FFFFFF
##512DBC1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#1C5673
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512dbc;
/* rgb */ color: rgb(81, 45, 188);
/* oklch */ color: oklch(44.0% 0.207 285.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ad1',
    500: '#512dbc',
    950: '#000000',
  },
}
SCSS
$custom: #512dbc;
$custom-light: #8e6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#512dbc",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 255.105,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44022,
    "c": 0.20669,
    "h": 285.8
  },
  "luminance": 0.07257
}

Semantic roles & 50–950 ramp

primary
#512DBC
secondary
#B6CA7B
accent
#E443BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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