#512FE0#512FE0

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

Color values

HEX#512FE0
RGBrgb(81, 47, 224)
HSLhsl(252, 74%, 53%)
HSVhsv(252, 79%, 88%)
CMYKcmyk(63.8%, 79%, 0%, 12.2%)
CIE-LABlab(36.30, 60.97, -83.54)
CIE-LCHlch(36.30, 103.42, 306.12°)
OKLaboklab(47.82% 0.0449 -0.2411)
OKLCHoklch(47.82% 0.245 280.5)
XYZxyz(17.8601, 9.1628, 71.3340)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FE0 #BEE02F
analogous
#2F66E0 #512FE0 #A92FE0
triadic
#512FE0 #E0512F #2FE051
tetradic
#512FE0 #E02F66 #BEE02F #2FE0A9
square
#512FE0 #E02F66 #BEE02F #2FE0A9
split-complementary
#512FE0 #E0A92F #66E02F
monochromatic
#281381 #391BB7 #512FE0 #7E64E8 #AA9AF0

Accessibility & contrast

On white

7.41
#512FE0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#512FE0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FE0
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FE0#FFFFFF#000000##FFFFFF
##512FE01.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE5
Deuteranopia (green-blind)
#004FDD
Tritanopia (blue-blind)
#006588
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #512fe0;
/* rgb */ color: rgb(81, 47, 224);
/* oklch */ color: oklch(47.8% 0.245 280.5);
Tailwind
colors: {
  custom: {
    50: '#946deb',
    500: '#512fe0',
    950: '#000000',
  },
}
SCSS
$custom: #512fe0;
$custom-light: #946deb;
$custom-dark: #000000;
JSON
{
  "hex": "#512fe0",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 224
  },
  "hsl": {
    "h": 251.525,
    "s": 74.059,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47822,
    "c": 0.24527,
    "h": 280.5
  },
  "luminance": 0.09164
}

Semantic roles & 50–950 ramp

primary
#512FE0
secondary
#CDDC8F
accent
#F137CD
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #512FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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