#512279#512279

#512279 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.142 H 305.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#512279
RGBrgb(81, 34, 121)
HSLhsl(272, 56%, 30%)
HSVhsv(272, 72%, 47%)
CMYKcmyk(33.1%, 71.9%, 0%, 52.5%)
CIE-LABlab(24.56, 38.84, -40.89)
CIE-LCHlch(24.56, 56.39, 313.53°)
OKLaboklab(36.68% 0.0816 -0.1161)
OKLCHoklch(36.68% 0.142 305.1)
XYZxyz(7.4158, 4.2739, 18.5197)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512279 #4A7922
analogous
#262279 #512279 #792275
triadic
#512279 #795122 #227951
tetradic
#512279 #792622 #4A7922 #227579
square
#512279 #792622 #4A7922 #227579
split-complementary
#512279 #757922 #227926
monochromatic
#110719 #311549 #512279 #712FA9 #9049CC

Accessibility & contrast

On white

11.32
#512279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#512279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512279
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512279#FFFFFF#000000##FFFFFF
##5122791.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#013A77
Tritanopia (blue-blind)
#4A364B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512279;
/* rgb */ color: rgb(81, 34, 121);
/* oklch */ color: oklch(36.7% 0.142 305.1);
Tailwind
colors: {
  custom: {
    50: '#8661a0',
    500: '#512279',
    950: '#000000',
  },
}
SCSS
$custom: #512279;
$custom-light: #8661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#512279",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 272.414,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36678,
    "c": 0.14192,
    "h": 305.1
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#512279
secondary
#77AC4B
accent
#DF488E
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #512279

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

Preview Lab → · Contrast checker → · Palette generator →

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