#512EFF#512EFF

#512EFF is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 51.0% C 0.279 H 277.4°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#512EFF
RGBrgb(81, 46, 255)
HSLhsl(250, 100%, 59%)
HSVhsv(250, 82%, 100%)
CMYKcmyk(68.2%, 82%, 0%, 0%)
CIE-LABlab(39.45, 69.91, -95.86)
CIE-LCHlch(39.45, 118.64, 306.11°)
OKLaboklab(50.96% 0.0362 -0.2769)
OKLCHoklch(50.96% 0.279 277.4)
XYZxyz(22.4145, 10.9213, 95.5151)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EFF #DCFF2E
analogous
#2E74FF #512EFF #BA2EFF
triadic
#512EFF #FF512E #2EFF51
tetradic
#512EFF #FF2E74 #DCFF2E #2EFFBA
square
#512EFF #FF2E74 #DCFF2E #2EFFBA
split-complementary
#512EFF #FFBA2E #74FF2E
monochromatic
#1E00B3 #2800F0 #512EFF #846BFF #B7A8FF

Accessibility & contrast

On white

6.59
#512EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#512EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #512EFF
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EFF#FFFFFF#000000##FFFFFF
##512EFF1.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065FF
Deuteranopia (green-blind)
#0054FC
Tritanopia (blue-blind)
#00719A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #512eff;
/* rgb */ color: rgb(81, 46, 255);
/* oklch */ color: oklch(51.0% 0.279 277.4);
Tailwind
colors: {
  custom: {
    50: '#9a6fff',
    500: '#512eff',
    950: '#000000',
  },
}
SCSS
$custom: #512eff;
$custom-light: #9a6fff;
$custom-dark: #000000;
JSON
{
  "hex": "#512eff",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 250.048,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5096,
    "c": 0.27927,
    "h": 277.4
  },
  "luminance": 0.10923
}

Semantic roles & 50–950 ramp

primary
#512EFF
secondary
#E0ED9B
accent
#FF29DB
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100818
muted
#7F7B86

Preview Lab

Preview with #512EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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