#512EE3#512EE3

#512EE3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.0% C 0.249 H 280.3°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#512EE3
RGBrgb(81, 46, 227)
HSLhsl(252, 76%, 54%)
HSVhsv(252, 80%, 89%)
CMYKcmyk(64.3%, 79.7%, 0%, 11%)
CIE-LABlab(36.46, 62.25, -84.99)
CIE-LCHlch(36.46, 105.34, 306.22°)
OKLaboklab(48.03% 0.0445 -0.2453)
OKLCHoklch(48.03% 0.249 280.3)
XYZxyz(18.2311, 9.2479, 73.4824)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EE3 #C0E32E
analogous
#2E65E3 #512EE3 #AB2EE3
triadic
#512EE3 #E3512E #2EE351
tetradic
#512EE3 #E32E65 #C0E32E #2EE3AB
square
#512EE3 #E32E65 #C0E32E #2EE3AB
split-complementary
#512EE3 #E3AB2E #65E32E
monochromatic
#281285 #3819BB #512EE3 #7E64EA #AB9AF1

Accessibility & contrast

On white

7.37
#512EE3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#512EE3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EE3
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EE3#FFFFFF#000000##FFFFFF
##512EE31.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE8
Deuteranopia (green-blind)
#004FE0
Tritanopia (blue-blind)
#00668A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #512ee3;
/* rgb */ color: rgb(81, 46, 227);
/* oklch */ color: oklch(48.0% 0.249 280.3);
Tailwind
colors: {
  custom: {
    50: '#956ded',
    500: '#512ee3',
    950: '#000000',
  },
}
SCSS
$custom: #512ee3;
$custom-light: #956ded;
$custom-dark: #000000;
JSON
{
  "hex": "#512ee3",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 227
  },
  "hsl": {
    "h": 251.602,
    "s": 76.371,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48025,
    "c": 0.24933,
    "h": 280.3
  },
  "luminance": 0.09249
}

Semantic roles & 50–950 ramp

primary
#512EE3
secondary
#CEDD90
accent
#F335CE
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #512EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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