#512792#512792

#512792 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.164 H 295.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#512792
RGBrgb(81, 39, 146)
HSLhsl(264, 58%, 36%)
HSVhsv(264, 73%, 57%)
CMYKcmyk(44.5%, 73.3%, 0%, 42.7%)
CIE-LABlab(27.51, 42.92, -51.74)
CIE-LCHlch(27.51, 67.23, 309.68°)
OKLaboklab(39.42% 0.0716 -0.1481)
OKLCHoklch(39.42% 0.164 295.8)
XYZxyz(9.3058, 5.2755, 27.7165)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512792 #689227
analogous
#273392 #512792 #872792
triadic
#512792 #925127 #279251
tetradic
#512792 #922733 #689227 #279287
square
#512792 #922733 #689227 #279287
split-complementary
#512792 #928727 #339227
monochromatic
#1B0D31 #361A62 #512792 #6C34C2 #8D5FD4

Accessibility & contrast

On white

10.22
#512792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#512792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512792
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512792#FFFFFF#000000##FFFFFF
##5127921.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#3F425A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512792;
/* rgb */ color: rgb(81, 39, 146);
/* oklch */ color: oklch(39.4% 0.164 295.8);
Tailwind
colors: {
  custom: {
    50: '#8865b3',
    500: '#512792',
    950: '#000000',
  },
}
SCSS
$custom: #512792;
$custom-light: #8865b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512792",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 263.551,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39415,
    "c": 0.16449,
    "h": 295.8
  },
  "luminance": 0.05276
}

Semantic roles & 50–950 ramp

primary
#512792
secondary
#95BA5B
accent
#E147A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512792

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

Preview Lab → · Contrast checker → · Palette generator →

#512792 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva