#512BA8#512BA8

#512BA8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.186 H 289.8°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#512BA8
RGBrgb(81, 43, 168)
HSLhsl(258, 59%, 41%)
HSVhsv(258, 74%, 66%)
CMYKcmyk(51.8%, 74.4%, 0%, 34.1%)
CIE-LABlab(30.17, 47.03, -60.79)
CIE-LCHlch(30.17, 76.86, 307.73°)
OKLaboklab(41.9% 0.0629 -0.1746)
OKLCHoklch(41.9% 0.186 289.8)
XYZxyz(11.3231, 6.3037, 37.6583)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BA8 #82A82B
analogous
#2B44A8 #512BA8 #902BA8
triadic
#512BA8 #A8512B #2BA851
tetradic
#512BA8 #A82B44 #82A82B #2BA890
square
#512BA8 #A82B44 #82A82B #2BA890
split-complementary
#512BA8 #A8902B #44A82B
monochromatic
#221247 #3A1F77 #512BA8 #6C42CF #9272DB

Accessibility & contrast

On white

9.29
#512BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#512BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BA8
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BA8#FFFFFF#000000##FFFFFF
##512BA81.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#324D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512ba8;
/* rgb */ color: rgb(81, 43, 168);
/* oklch */ color: oklch(41.9% 0.186 289.8);
Tailwind
colors: {
  custom: {
    50: '#8b68c3',
    500: '#512ba8',
    950: '#000000',
  },
}
SCSS
$custom: #512ba8;
$custom-light: #8b68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#512ba8",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 258.24,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41895,
    "c": 0.18563,
    "h": 289.8
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#512BA8
secondary
#A8C26C
accent
#E245B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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