#5120A7#5120A7

#5120A7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.195 H 291.5°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5120A7
RGBrgb(81, 32, 167)
HSLhsl(262, 68%, 39%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(51.5%, 80.8%, 0%, 34.5%)
CIE-LABlab(28.31, 51.82, -63.24)
CIE-LCHlch(28.31, 81.76, 309.33°)
OKLaboklab(40.57% 0.0716 -0.1817)
OKLCHoklch(40.57% 0.195 291.5)
XYZxyz(10.8829, 5.5719, 37.0538)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5120A7 #76A720
analogous
#2033A7 #5120A7 #9520A7
triadic
#5120A7 #A75120 #20A751
tetradic
#5120A7 #A72033 #76A720 #20A795
square
#5120A7 #A72033 #76A720 #20A795
split-complementary
#5120A7 #A79520 #33A720
monochromatic
#1F0C40 #381674 #5120A7 #6B2DD7 #8F61E1

Accessibility & contrast

On white

9.93
#5120A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5120A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5120A7
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5120A7#FFFFFF#000000##FFFFFF
##5120A71.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#334864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5120a7;
/* rgb */ color: rgb(81, 32, 167);
/* oklch */ color: oklch(40.6% 0.195 291.5);
Tailwind
colors: {
  custom: {
    50: '#8b62c2',
    500: '#5120a7',
    950: '#000000',
  },
}
SCSS
$custom: #5120a7;
$custom-light: #8b62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5120a7",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 261.778,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40565,
    "c": 0.19533,
    "h": 291.5
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#5120A7
secondary
#A0C55D
accent
#EB3DAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5120A7

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

Preview Lab → · Contrast checker → · Palette generator →

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