#512DE2#512DE2

#512DE2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.249 H 280.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#512DE2
RGBrgb(81, 45, 226)
HSLhsl(252, 76%, 53%)
HSVhsv(252, 80%, 89%)
CMYKcmyk(64.2%, 80.1%, 0%, 11.4%)
CIE-LABlab(36.21, 62.40, -84.83)
CIE-LCHlch(36.21, 105.31, 306.34°)
OKLaboklab(47.82% 0.0453 -0.2449)
OKLCHoklch(47.82% 0.249 280.5)
XYZxyz(18.0548, 9.1157, 72.7448)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DE2 #BEE22D
analogous
#2D63E2 #512DE2 #AC2DE2
triadic
#512DE2 #E2512D #2DE251
tetradic
#512DE2 #E22D63 #BEE22D #2DE2AC
square
#512DE2 #E22D63 #BEE22D #2DE2AC
split-complementary
#512DE2 #E2AC2D #63E22D
monochromatic
#281283 #3919B8 #512DE2 #7E63E9 #AA99F1

Accessibility & contrast

On white

7.44
#512DE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#512DE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DE2
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DE2#FFFFFF#000000##FFFFFF
##512DE21.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006589
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #512de2;
/* rgb */ color: rgb(81, 45, 226);
/* oklch */ color: oklch(47.8% 0.249 280.5);
Tailwind
colors: {
  custom: {
    50: '#946ded',
    500: '#512de2',
    950: '#000000',
  },
}
SCSS
$custom: #512de2;
$custom-light: #946ded;
$custom-dark: #000000;
JSON
{
  "hex": "#512de2",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 251.934,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47821,
    "c": 0.24901,
    "h": 280.5
  },
  "luminance": 0.09117
}

Semantic roles & 50–950 ramp

primary
#512DE2
secondary
#CDDC8E
accent
#F235CD
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #512DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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