#512BC0#512BC0

#512BC0 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.213 H 285.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#512BC0
RGBrgb(81, 43, 192)
HSLhsl(255, 63%, 46%)
HSVhsv(255, 78%, 75%)
CMYKcmyk(57.8%, 77.6%, 0%, 24.7%)
CIE-LABlab(32.44, 53.80, -71.33)
CIE-LCHlch(32.44, 89.35, 307.02°)
OKLaboklab(44.18% 0.0565 -0.2055)
OKLCHoklch(44.18% 0.213 285.4)
XYZxyz(13.7688, 7.2820, 50.5390)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BC0 #9AC02B
analogous
#2B4FC0 #512BC0 #9B2BC0
triadic
#512BC0 #C0512B #2BC051
tetradic
#512BC0 #C02B4F #9AC02B #2BC09B
square
#512BC0 #C02B4F #9AC02B #2BC09B
split-complementary
#512BC0 #C09B2B #4FC02B
monochromatic
#27155C #3C208E #512BC0 #7350D8 #9B82E3

Accessibility & contrast

On white

8.55
#512BC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#512BC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BC0
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BC0#FFFFFF#000000##FFFFFF
##512BC01.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C4
Deuteranopia (green-blind)
#0048BD
Tritanopia (blue-blind)
#145675
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512bc0;
/* rgb */ color: rgb(81, 43, 192);
/* oklch */ color: oklch(44.2% 0.213 285.4);
Tailwind
colors: {
  custom: {
    50: '#8f6ad4',
    500: '#512bc0',
    950: '#000000',
  },
}
SCSS
$custom: #512bc0;
$custom-light: #8f6ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#512bc0",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 192
  },
  "hsl": {
    "h": 255.302,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44179,
    "c": 0.21311,
    "h": 285.4
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#512BC0
secondary
#B7CC7B
accent
#E641BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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