#512BC2#512BC2

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

Color values

HEX#512BC2
RGBrgb(81, 43, 194)
HSLhsl(255, 64%, 46%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(58.2%, 77.8%, 0%, 23.9%)
CIE-LABlab(32.64, 54.36, -72.19)
CIE-LCHlch(32.64, 90.37, 306.98°)
OKLaboklab(44.38% 0.0559 -0.208)
OKLCHoklch(44.38% 0.215 285)
XYZxyz(13.9919, 7.3713, 51.7140)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BC2 #9CC22B
analogous
#2B51C2 #512BC2 #9D2BC2
triadic
#512BC2 #C2512B #2BC251
tetradic
#512BC2 #C22B51 #9CC22B #2BC29D
square
#512BC2 #C22B51 #9CC22B #2BC29D
split-complementary
#512BC2 #C29D2B #51C22B
monochromatic
#27155E #3C2090 #512BC2 #7452D9 #9C84E4

Accessibility & contrast

On white

8.49
#512BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#512BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BC2
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BC2#FFFFFF#000000##FFFFFF
##512BC21.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#105776
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512bc2;
/* rgb */ color: rgb(81, 43, 194);
/* oklch */ color: oklch(44.4% 0.215 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f6ad6',
    500: '#512bc2',
    950: '#000000',
  },
}
SCSS
$custom: #512bc2;
$custom-light: #8f6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#512bc2",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 255.099,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44376,
    "c": 0.21536,
    "h": 285
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#512BC2
secondary
#B8CD7C
accent
#E741BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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