#512470#512470

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

Color values

HEX#512470
RGBrgb(81, 36, 112)
HSLhsl(276, 51%, 29%)
HSVhsv(276, 68%, 44%)
CMYKcmyk(27.7%, 67.9%, 0%, 56.1%)
CIE-LABlab(24.26, 35.53, -35.61)
CIE-LCHlch(24.26, 50.30, 314.93°)
OKLaboklab(36.25% 0.0802 -0.1006)
OKLCHoklch(36.25% 0.129 308.5)
XYZxyz(6.9483, 4.1810, 15.7671)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512470 #437024
analogous
#2B2470 #512470 #702469
triadic
#512470 #705124 #247051
tetradic
#512470 #702B24 #437024 #246970
square
#512470 #702B24 #437024 #246970
split-complementary
#512470 #697024 #24702B
monochromatic
#110717 #301542 #512470 #72339E #934AC5

Accessibility & contrast

On white

11.44
#512470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512470
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512470#FFFFFF#000000##FFFFFF
##5124701.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#173A6E
Tritanopia (blue-blind)
#4C3446
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512470;
/* rgb */ color: rgb(81, 36, 112);
/* oklch */ color: oklch(36.3% 0.129 308.5);
Tailwind
colors: {
  custom: {
    50: '#85629a',
    500: '#512470',
    950: '#000000',
  },
}
SCSS
$custom: #512470;
$custom-light: #85629a;
$custom-dark: #000000;
JSON
{
  "hex": "#512470",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 112
  },
  "hsl": {
    "h": 275.526,
    "s": 51.351,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36252,
    "c": 0.12866,
    "h": 308.5
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#512470
secondary
#70A34D
accent
#DB4D87
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512470

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

Preview Lab → · Contrast checker → · Palette generator →

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