#512FC9#512FC9

#512FC9 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.220 H 283.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#512FC9
RGBrgb(81, 47, 201)
HSLhsl(253, 62%, 49%)
HSVhsv(253, 77%, 79%)
CMYKcmyk(59.7%, 76.6%, 0%, 21.2%)
CIE-LABlab(33.98, 54.47, -74.07)
CIE-LCHlch(33.98, 91.94, 306.33°)
OKLaboklab(45.52% 0.0514 -0.2135)
OKLCHoklch(45.52% 0.22 283.5)
XYZxyz(14.9492, 7.9984, 56.0031)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FC9 #A7C92F
analogous
#2F5AC9 #512FC9 #9E2FC9
triadic
#512FC9 #C9512F #2FC951
tetradic
#512FC9 #C92F5A #A7C92F #2FC99E
square
#512FC9 #C92F5A #A7C92F #2FC99E
split-complementary
#512FC9 #C99E2F #5AC92F
monochromatic
#291866 #3D2397 #512FC9 #785CD9 #A18EE5

Accessibility & contrast

On white

8.08
#512FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#512FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FC9
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FC9#FFFFFF#000000##FFFFFF
##512FC91.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#004BC6
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #512fc9;
/* rgb */ color: rgb(81, 47, 201);
/* oklch */ color: oklch(45.5% 0.220 283.5);
Tailwind
colors: {
  custom: {
    50: '#906cdb',
    500: '#512fc9',
    950: '#000000',
  },
}
SCSS
$custom: #512fc9;
$custom-light: #906cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#512fc9",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 253.247,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45519,
    "c": 0.21962,
    "h": 283.5
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

primary
#512FC9
secondary
#BFCF85
accent
#E543C1
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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