#512380#512380

#512380 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.149 H 302.3°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#512380
RGBrgb(81, 35, 128)
HSLhsl(270, 57%, 32%)
HSVhsv(270, 73%, 50%)
CMYKcmyk(36.7%, 72.7%, 0%, 49.8%)
CIE-LABlab(25.29, 40.14, -44.13)
CIE-LCHlch(25.29, 59.65, 312.29°)
OKLaboklab(37.37% 0.0793 -0.1257)
OKLCHoklch(37.37% 0.149 302.3)
XYZxyz(7.8897, 4.5099, 20.8727)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512380 #528023
analogous
#232480 #512380 #802380
triadic
#512380 #805123 #238051
tetradic
#512380 #802324 #528023 #238080
square
#512380 #802324 #528023 #238080
split-complementary
#512380 #808023 #248023
monochromatic
#140920 #331650 #512380 #6F30B0 #8E4FCF

Accessibility & contrast

On white

11.04
#512380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#512380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512380
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512380#FFFFFF#000000##FFFFFF
##5123801.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512380;
/* rgb */ color: rgb(81, 35, 128);
/* oklch */ color: oklch(37.4% 0.149 302.3);
Tailwind
colors: {
  custom: {
    50: '#8662a6',
    500: '#512380',
    950: '#000000',
  },
}
SCSS
$custom: #512380;
$custom-light: #8662a6;
$custom-dark: #000000;
JSON
{
  "hex": "#512380",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 128
  },
  "hsl": {
    "h": 269.677,
    "s": 57.055,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37374,
    "c": 0.14861,
    "h": 302.3
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#512380
secondary
#80B24D
accent
#E04795
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #512380

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

Preview Lab → · Contrast checker → · Palette generator →

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