#5120A0#5120A0

#5120A0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.188 H 293.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5120A0
RGBrgb(81, 32, 160)
HSLhsl(263, 67%, 38%)
HSVhsv(263, 80%, 63%)
CMYKcmyk(49.4%, 80%, 0%, 37.3%)
CIE-LABlab(27.63, 49.97, -60.12)
CIE-LCHlch(27.63, 78.17, 309.73°)
OKLaboklab(39.89% 0.0739 -0.1726)
OKLCHoklch(39.89% 0.188 293.2)
XYZxyz(10.2532, 5.3201, 33.7375)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5120A0 #6FA020
analogous
#202FA0 #5120A0 #9120A0
triadic
#5120A0 #A05120 #20A051
tetradic
#5120A0 #A0202F #6FA020 #20A091
square
#5120A0 #A0202F #6FA020 #20A091
split-complementary
#5120A0 #A09120 #2FA020
monochromatic
#1D0C3A #37166D #5120A0 #6B2AD3 #8E5CDE

Accessibility & contrast

On white

10.17
#5120A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5120A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5120A0
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5120A0#FFFFFF#000000##FFFFFF
##5120A01.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#384560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5120a0;
/* rgb */ color: rgb(81, 32, 160);
/* oklch */ color: oklch(39.9% 0.188 293.2);
Tailwind
colors: {
  custom: {
    50: '#8a62bd',
    500: '#5120a0',
    950: '#000000',
  },
}
SCSS
$custom: #5120a0;
$custom-light: #8a62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5120a0",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 262.969,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3989,
    "c": 0.18773,
    "h": 293.2
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#5120A0
secondary
#9AC359
accent
#EA3EA8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5120A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5120A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva