#512FC1#512FC1

#512FC1 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.210 H 284.7°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#512FC1
RGBrgb(81, 47, 193)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 76%, 76%)
CMYKcmyk(58%, 75.6%, 0%, 24.3%)
CIE-LABlab(33.20, 52.18, -70.67)
CIE-LCHlch(33.20, 87.84, 306.44°)
OKLaboklab(44.74% 0.0535 -0.2036)
OKLCHoklch(44.74% 0.21 284.7)
XYZxyz(14.0326, 7.6317, 51.1754)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FC1 #9FC12F
analogous
#2F56C1 #512FC1 #9A2FC1
triadic
#512FC1 #C1512F #2FC151
tetradic
#512FC1 #C12F56 #9FC12F #2FC19A
square
#512FC1 #C12F56 #9FC12F #2FC19A
split-complementary
#512FC1 #C19A2F #56C12F
monochromatic
#28175F #3C2390 #512FC1 #7557D6 #9D88E2

Accessibility & contrast

On white

8.31
#512FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#512FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FC1
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FC1#FFFFFF#000000##FFFFFF
##512FC11.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C5
Deuteranopia (green-blind)
#0049BE
Tritanopia (blue-blind)
#115876
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #512fc1;
/* rgb */ color: rgb(81, 47, 193);
/* oklch */ color: oklch(44.7% 0.210 284.7);
Tailwind
colors: {
  custom: {
    50: '#8f6cd5',
    500: '#512fc1',
    950: '#000000',
  },
}
SCSS
$custom: #512fc1;
$custom-light: #8f6cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#512fc1",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 253.973,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44742,
    "c": 0.21049,
    "h": 284.7
  },
  "luminance": 0.07633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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