#512280#512280

#512280 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.150 H 302.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#512280
RGBrgb(81, 34, 128)
HSLhsl(270, 58%, 32%)
HSVhsv(270, 73%, 50%)
CMYKcmyk(36.7%, 73.4%, 0%, 49.8%)
CIE-LABlab(25.11, 40.63, -44.42)
CIE-LCHlch(25.11, 60.20, 312.45°)
OKLaboklab(37.25% 0.0804 -0.1265)
OKLCHoklch(37.25% 0.15 302.4)
XYZxyz(7.8607, 4.4519, 20.8631)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512280 #518022
analogous
#222280 #512280 #802280
triadic
#512280 #805122 #228051
tetradic
#512280 #802222 #518022 #228080
square
#512280 #802222 #518022 #228080
split-complementary
#512280 #808022 #228022
monochromatic
#14081F #321550 #512280 #702FB0 #8E4DD0

Accessibility & contrast

On white

11.11
#512280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#512280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512280
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512280#FFFFFF#000000##FFFFFF
##5122801.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#47394E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512280;
/* rgb */ color: rgb(81, 34, 128);
/* oklch */ color: oklch(37.2% 0.150 302.4);
Tailwind
colors: {
  custom: {
    50: '#8661a6',
    500: '#512280',
    950: '#000000',
  },
}
SCSS
$custom: #512280;
$custom-light: #8661a6;
$custom-dark: #000000;
JSON
{
  "hex": "#512280",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 270,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37248,
    "c": 0.1499,
    "h": 302.4
  },
  "luminance": 0.04452
}

Semantic roles & 50–950 ramp

primary
#512280
secondary
#7FB24B
accent
#E14794
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #512280

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

Preview Lab → · Contrast checker → · Palette generator →

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