#512FC3#512FC3

#512FC3 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.213 H 284.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#512FC3
RGBrgb(81, 47, 195)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 76%, 76%)
CMYKcmyk(58.5%, 75.9%, 0%, 23.5%)
CIE-LABlab(33.40, 52.75, -71.52)
CIE-LCHlch(33.40, 88.87, 306.41°)
OKLaboklab(44.94% 0.053 -0.2061)
OKLCHoklch(44.94% 0.213 284.4)
XYZxyz(14.2572, 7.7216, 52.3583)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FC3 #A1C32F
analogous
#2F57C3 #512FC3 #9B2FC3
triadic
#512FC3 #C3512F #2FC351
tetradic
#512FC3 #C32F57 #A1C32F #2FC39B
square
#512FC3 #C32F57 #A1C32F #2FC39B
split-complementary
#512FC3 #C39B2F #57C32F
monochromatic
#281760 #3D2392 #512FC3 #7558D7 #9E8AE3

Accessibility & contrast

On white

8.25
#512FC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#512FC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FC3
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FC3#FFFFFF#000000##FFFFFF
##512FC31.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#0C5977
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #512fc3;
/* rgb */ color: rgb(81, 47, 195);
/* oklch */ color: oklch(44.9% 0.213 284.4);
Tailwind
colors: {
  custom: {
    50: '#8f6cd6',
    500: '#512fc3',
    950: '#000000',
  },
}
SCSS
$custom: #512fc3;
$custom-light: #8f6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#512fc3",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 195
  },
  "hsl": {
    "h": 253.784,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44935,
    "c": 0.21278,
    "h": 284.4
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#512FC3
secondary
#BBCD81
accent
#E444BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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