#512FC0#512FC0

#512FC0 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.209 H 284.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#512FC0
RGBrgb(81, 47, 192)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 76%, 75%)
CMYKcmyk(57.8%, 75.5%, 0%, 24.7%)
CIE-LABlab(33.11, 51.89, -70.24)
CIE-LCHlch(33.11, 87.32, 306.46°)
OKLaboklab(44.65% 0.0538 -0.2023)
OKLCHoklch(44.65% 0.209 284.9)
XYZxyz(13.9214, 7.5873, 50.5899)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FC0 #9EC02F
analogous
#2F56C0 #512FC0 #9A2FC0
triadic
#512FC0 #C0512F #2FC051
tetradic
#512FC0 #C02F56 #9EC02F #2FC09A
square
#512FC0 #C02F56 #9EC02F #2FC09A
split-complementary
#512FC0 #C09A2F #56C02F
monochromatic
#28175E #3C238F #512FC0 #7456D6 #9D88E2

Accessibility & contrast

On white

8.34
#512FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#512FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FC0
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FC0#FFFFFF#000000##FFFFFF
##512FC01.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#145876
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #512fc0;
/* rgb */ color: rgb(81, 47, 192);
/* oklch */ color: oklch(44.6% 0.209 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e6cd4',
    500: '#512fc0',
    950: '#000000',
  },
}
SCSS
$custom: #512fc0;
$custom-light: #8e6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#512fc0",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 254.069,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44646,
    "c": 0.20934,
    "h": 284.9
  },
  "luminance": 0.07588
}

Semantic roles & 50–950 ramp

primary
#512FC0
secondary
#BACB7F
accent
#E444BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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