#510C4E#510C4E

#510C4E is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.2% C 0.126 H 330.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#510C4E
RGBrgb(81, 12, 78)
HSLhsl(303, 74%, 18%)
HSVhsv(303, 85%, 32%)
CMYKcmyk(0%, 85.2%, 3.7%, 68.2%)
CIE-LABlab(18.20, 38.68, -22.81)
CIE-LCHlch(18.20, 44.90, 329.47°)
OKLaboklab(31.16% 0.1096 -0.063)
OKLCHoklch(31.16% 0.126 330.1)
XYZxyz(4.8999, 2.5627, 7.4428)
Luminance0.0256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#510C4E #0C510F
analogous
#310C51 #510C4E #510C2B
triadic
#510C4E #4E510C #0C4E51
tetradic
#510C4E #51310C #0C510F #0C2B51
square
#510C4E #51310C #0C510F #0C2B51
split-complementary
#510C4E #2B510C #0C5131
monochromatic
#1B041A #1C041B #510C4E #861481 #BC1CB5

Accessibility & contrast

On white

13.89
#510C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#510C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #510C4E
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##510C4E#FFFFFF#000000##FFFFFF
##510C4E1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032750
Deuteranopia (green-blind)
#22304C
Tritanopia (blue-blind)
#54162D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #510c4e;
/* rgb */ color: rgb(81, 12, 78);
/* oklch */ color: oklch(31.2% 0.126 330.1);
Tailwind
colors: {
  custom: {
    50: '#855580',
    500: '#510c4e',
    950: '#000000',
  },
}
SCSS
$custom: #510c4e;
$custom-light: #855580;
$custom-dark: #000000;
JSON
{
  "hex": "#510c4e",
  "rgb": {
    "r": 81,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 302.609,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.31163,
    "c": 0.12642,
    "h": 330.1
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#510C4E
secondary
#2C8C31
accent
#F13F37
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #510C4E

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

Preview Lab → · Contrast checker → · Palette generator →

#510C4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva