#512DC0#512DC0

#512DC0 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.211 H 285.1°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#512DC0
RGBrgb(81, 45, 192)
HSLhsl(255, 62%, 46%)
HSVhsv(255, 77%, 75%)
CMYKcmyk(57.8%, 76.6%, 0%, 24.7%)
CIE-LABlab(32.77, 52.86, -70.79)
CIE-LCHlch(32.77, 88.35, 306.75°)
OKLaboklab(44.41% 0.0551 -0.2039)
OKLCHoklch(44.41% 0.211 285.1)
XYZxyz(13.8433, 7.4310, 50.5638)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DC0 #9CC02D
analogous
#2D53C0 #512DC0 #9B2DC0
triadic
#512DC0 #C0512D #2DC051
tetradic
#512DC0 #C02D53 #9CC02D #2DC09B
square
#512DC0 #C02D53 #9CC02D #2DC09B
split-complementary
#512DC0 #C09B2D #53C02D
monochromatic
#27165D #3C218E #512DC0 #7453D7 #9C85E2

Accessibility & contrast

On white

8.45
#512DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#512DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DC0
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DC0#FFFFFF#000000##FFFFFF
##512DC01.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C4
Deuteranopia (green-blind)
#0048BD
Tritanopia (blue-blind)
#145775
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512dc0;
/* rgb */ color: rgb(81, 45, 192);
/* oklch */ color: oklch(44.4% 0.211 285.1);
Tailwind
colors: {
  custom: {
    50: '#8e6bd4',
    500: '#512dc0',
    950: '#000000',
  },
}
SCSS
$custom: #512dc0;
$custom-light: #8e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#512dc0",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 254.694,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44408,
    "c": 0.21125,
    "h": 285.1
  },
  "luminance": 0.07432
}

Semantic roles & 50–950 ramp

primary
#512DC0
secondary
#B8CC7D
accent
#E543BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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