#510E4E#510E4E

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

Color values

HEX#510E4E
RGBrgb(81, 14, 78)
HSLhsl(303, 71%, 19%)
HSVhsv(303, 83%, 32%)
CMYKcmyk(0%, 82.7%, 3.7%, 68.2%)
CIE-LABlab(18.43, 38.02, -22.45)
CIE-LCHlch(18.43, 44.16, 329.44°)
OKLaboklab(31.32% 0.1077 -0.062)
OKLCHoklch(31.32% 0.124 330.1)
XYZxyz(4.9255, 2.6139, 7.4514)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#510E4E #0E5111
analogous
#320E51 #510E4E #510E2C
triadic
#510E4E #4E510E #0E4E51
tetradic
#510E4E #51320E #0E5111 #0E2C51
square
#510E4E #51320E #0E5111 #0E2C51
split-complementary
#510E4E #2C510E #0E5132
monochromatic
#1A0519 #1D051C #510E4E #851780 #B920B2

Accessibility & contrast

On white

13.79
#510E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#510E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #510E4E
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##510E4E#FFFFFF#000000##FFFFFF
##510E4E1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052750
Deuteranopia (green-blind)
#23304C
Tritanopia (blue-blind)
#54182D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #510e4e;
/* rgb */ color: rgb(81, 14, 78);
/* oklch */ color: oklch(31.3% 0.124 330.1);
Tailwind
colors: {
  custom: {
    50: '#855680',
    500: '#510e4e',
    950: '#000000',
  },
}
SCSS
$custom: #510e4e;
$custom-light: #855680;
$custom-dark: #000000;
JSON
{
  "hex": "#510e4e",
  "rgb": {
    "r": 81,
    "g": 14,
    "b": 78
  },
  "hsl": {
    "h": 302.687,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.31325,
    "c": 0.12429,
    "h": 330.1
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#510E4E
secondary
#2F8C33
accent
#ED433A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #510E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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