#512EFB#512EFB

#512EFB is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.5% C 0.275 H 277.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#512EFB
RGBrgb(81, 46, 251)
HSLhsl(250, 96%, 58%)
HSVhsv(250, 82%, 98%)
CMYKcmyk(67.7%, 81.7%, 0%, 1.6%)
CIE-LABlab(39.01, 68.83, -94.34)
CIE-LCHlch(39.01, 116.78, 306.12°)
OKLaboklab(50.54% 0.0374 -0.2725)
OKLCHoklch(50.54% 0.275 277.8)
XYZxyz(21.7773, 10.6664, 92.1593)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EFB #D8FB2E
analogous
#2E71FB #512EFB #B72EFB
triadic
#512EFB #FB512E #2EFB51
tetradic
#512EFB #FB2E71 #D8FB2E #2EFBB7
square
#512EFB #FB2E71 #D8FB2E #2EFBB7
split-complementary
#512EFB #FBB72E #71FB2E
monochromatic
#2003AB #2B04E7 #512EFB #836AFC #B5A6FD

Accessibility & contrast

On white

6.70
#512EFB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#512EFB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #512EFB
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EFB#FFFFFF#000000##FFFFFF
##512EFB1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064FF
Deuteranopia (green-blind)
#0053F8
Tritanopia (blue-blind)
#007098
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #512efb;
/* rgb */ color: rgb(81, 46, 251);
/* oklch */ color: oklch(50.5% 0.275 277.8);
Tailwind
colors: {
  custom: {
    50: '#996ffe',
    500: '#512efb',
    950: '#000000',
  },
}
SCSS
$custom: #512efb;
$custom-light: #996ffe;
$custom-dark: #000000;
JSON
{
  "hex": "#512efb",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 251
  },
  "hsl": {
    "h": 250.244,
    "s": 96.244,
    "l": 58.235
  },
  "oklch": {
    "l": 0.50535,
    "c": 0.27505,
    "h": 277.8
  },
  "luminance": 0.10668
}

Semantic roles & 50–950 ramp

primary
#512EFB
secondary
#DDEB9A
accent
#FF29DA
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100818
muted
#7F7B86

Preview Lab

Preview with #512EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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