#510F4E#510F4E

#510F4E is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.123 H 330.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#510F4E
RGBrgb(81, 15, 78)
HSLhsl(303, 69%, 19%)
HSVhsv(303, 81%, 32%)
CMYKcmyk(0%, 81.5%, 3.7%, 68.2%)
CIE-LABlab(18.55, 37.68, -22.26)
CIE-LCHlch(18.55, 43.76, 329.43°)
OKLaboklab(31.41% 0.1067 -0.0615)
OKLCHoklch(31.41% 0.123 330)
XYZxyz(4.9393, 2.6414, 7.4560)
Luminance0.0264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#510F4E #0F5112
analogous
#330F51 #510F4E #510F2D
triadic
#510F4E #4E510F #0F4E51
tetradic
#510F4E #51330F #0F5112 #0F2D51
square
#510F4E #51330F #0F5112 #0F2D51
split-complementary
#510F4E #2D510F #0F5133
monochromatic
#1A0519 #1D051C #510F4E #851980 #B822B1

Accessibility & contrast

On white

13.74
#510F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#510F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #510F4E
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##510F4E#FFFFFF#000000##FFFFFF
##510F4E1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #510f4e;
/* rgb */ color: rgb(81, 15, 78);
/* oklch */ color: oklch(31.4% 0.123 330.0);
Tailwind
colors: {
  custom: {
    50: '#855680',
    500: '#510f4e',
    950: '#000000',
  },
}
SCSS
$custom: #510f4e;
$custom-light: #855680;
$custom-dark: #000000;
JSON
{
  "hex": "#510f4e",
  "rgb": {
    "r": 81,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 302.727,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31411,
    "c": 0.12314,
    "h": 330
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#510F4E
secondary
#318B35
accent
#EC443C
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #510F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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