#512FE2#512FE2

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

Color values

HEX#512FE2
RGBrgb(81, 47, 226)
HSLhsl(251, 76%, 54%)
HSVhsv(251, 79%, 89%)
CMYKcmyk(64.2%, 79.2%, 0%, 11.4%)
CIE-LABlab(36.50, 61.53, -84.34)
CIE-LCHlch(36.50, 104.40, 306.11°)
OKLaboklab(48.03% 0.0443 -0.2435)
OKLCHoklch(48.03% 0.247 280.3)
XYZxyz(18.1330, 9.2719, 72.7709)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FE2 #C0E22F
analogous
#2F66E2 #512FE2 #AB2FE2
triadic
#512FE2 #E2512F #2FE251
tetradic
#512FE2 #E22F66 #C0E22F #2FE2AB
square
#512FE2 #E22F66 #C0E22F #2FE2AB
split-complementary
#512FE2 #E2AB2F #66E22F
monochromatic
#281284 #381ABA #512FE2 #7E65E9 #AB9AF1

Accessibility & contrast

On white

7.36
#512FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512FE2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FE2#FFFFFF#000000##FFFFFF
##512FE21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE7
Deuteranopia (green-blind)
#004FDF
Tritanopia (blue-blind)
#006689
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #512fe2;
/* rgb */ color: rgb(81, 47, 226);
/* oklch */ color: oklch(48.0% 0.247 280.3);
Tailwind
colors: {
  custom: {
    50: '#946eed',
    500: '#512fe2',
    950: '#000000',
  },
}
SCSS
$custom: #512fe2;
$custom-light: #946eed;
$custom-dark: #000000;
JSON
{
  "hex": "#512fe2",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 251.397,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48026,
    "c": 0.24746,
    "h": 280.3
  },
  "luminance": 0.09273
}

Semantic roles & 50–950 ramp

primary
#512FE2
secondary
#CEDD90
accent
#F236CE
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #512FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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