#512471#512471

#512471 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.130 H 308.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#512471
RGBrgb(81, 36, 113)
HSLhsl(275, 52%, 29%)
HSVhsv(275, 68%, 44%)
CMYKcmyk(28.3%, 68.1%, 0%, 55.7%)
CIE-LABlab(24.33, 35.78, -36.14)
CIE-LCHlch(24.33, 50.85, 314.71°)
OKLaboklab(36.33% 0.0801 -0.1022)
OKLCHoklch(36.33% 0.13 308.1)
XYZxyz(7.0042, 4.2034, 16.0619)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512471 #447124
analogous
#2B2471 #512471 #71246B
triadic
#512471 #715124 #247151
tetradic
#512471 #712B24 #447124 #246B71
square
#512471 #712B24 #447124 #246B71
split-complementary
#512471 #6B7124 #24712B
monochromatic
#110717 #301543 #512471 #72339F #924AC5

Accessibility & contrast

On white

11.41
#512471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#512471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512471
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512471#FFFFFF#000000##FFFFFF
##5124711.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#163A6F
Tritanopia (blue-blind)
#4C3447
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512471;
/* rgb */ color: rgb(81, 36, 113);
/* oklch */ color: oklch(36.3% 0.130 308.1);
Tailwind
colors: {
  custom: {
    50: '#85629a',
    500: '#512471',
    950: '#000000',
  },
}
SCSS
$custom: #512471;
$custom-light: #85629a;
$custom-dark: #000000;
JSON
{
  "hex": "#512471",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 275.065,
    "s": 51.678,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36327,
    "c": 0.12982,
    "h": 308.1
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#512471
secondary
#71A44D
accent
#DB4D88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512471

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

Preview Lab → · Contrast checker → · Palette generator →

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