#512DD3#512DD3

#512DD3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.233 H 282.3°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#512DD3
RGBrgb(81, 45, 211)
HSLhsl(253, 65%, 50%)
HSVhsv(253, 79%, 83%)
CMYKcmyk(61.6%, 78.7%, 0%, 17.3%)
CIE-LABlab(34.66, 58.22, -78.76)
CIE-LCHlch(34.66, 97.95, 306.47°)
OKLaboklab(46.29% 0.0497 -0.2272)
OKLCHoklch(46.29% 0.233 282.3)
XYZxyz(16.0859, 8.3281, 62.3752)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DD3 #AFD32D
analogous
#2D5CD3 #512DD3 #A42DD3
triadic
#512DD3 #D3512D #2DD351
tetradic
#512DD3 #D32D5C #AFD32D #2DD3A4
square
#512DD3 #D32D5C #AFD32D #2DD3A4
split-complementary
#512DD3 #D3A42D #5CD32D
monochromatic
#2A176E #3D22A1 #512DD3 #7B60DE #A592E8

Accessibility & contrast

On white

7.88
#512DD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#512DD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DD3
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DD3#FFFFFF#000000##FFFFFF
##512DD31.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D8
Deuteranopia (green-blind)
#004CD0
Tritanopia (blue-blind)
#005F80
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #512dd3;
/* rgb */ color: rgb(81, 45, 211);
/* oklch */ color: oklch(46.3% 0.233 282.3);
Tailwind
colors: {
  custom: {
    50: '#926ce2',
    500: '#512dd3',
    950: '#000000',
  },
}
SCSS
$custom: #512dd3;
$custom-light: #926ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#512dd3",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 211
  },
  "hsl": {
    "h": 253.012,
    "s": 65.354,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4629,
    "c": 0.23257,
    "h": 282.3
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#512DD3
secondary
#C3D389
accent
#E83FC4
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #512DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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