#5120A5#5120A5

#5120A5 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.193 H 292.0°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5120A5
RGBrgb(81, 32, 165)
HSLhsl(262, 68%, 39%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(50.9%, 80.6%, 0%, 35.3%)
CIE-LABlab(28.11, 51.29, -62.36)
CIE-LCHlch(28.11, 80.74, 309.44°)
OKLaboklab(40.37% 0.0723 -0.1791)
OKLCHoklch(40.37% 0.193 292)
XYZxyz(10.6995, 5.4986, 36.0876)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5120A5 #74A520
analogous
#2031A5 #5120A5 #9320A5
triadic
#5120A5 #A55120 #20A551
tetradic
#5120A5 #A52031 #74A520 #20A593
square
#5120A5 #A52031 #74A520 #20A593
split-complementary
#5120A5 #A59320 #31A520
monochromatic
#1F0C3E #381672 #5120A5 #6B2CD6 #8F5FE0

Accessibility & contrast

On white

10.00
#5120A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5120A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5120A5
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5120A5#FFFFFF#000000##FFFFFF
##5120A51.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#344763
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5120a5;
/* rgb */ color: rgb(81, 32, 165);
/* oklch */ color: oklch(40.4% 0.193 292.0);
Tailwind
colors: {
  custom: {
    50: '#8b62c1',
    500: '#5120a5',
    950: '#000000',
  },
}
SCSS
$custom: #5120a5;
$custom-light: #8b62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5120a5",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 262.105,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40371,
    "c": 0.19316,
    "h": 292
  },
  "luminance": 0.05499
}

Semantic roles & 50–950 ramp

primary
#5120A5
secondary
#9EC55C
accent
#EA3DAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5120A5

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

Preview Lab → · Contrast checker → · Palette generator →

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