#5120A6#5120A6

#5120A6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.194 H 291.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5120A6
RGBrgb(81, 32, 166)
HSLhsl(262, 68%, 39%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(51.2%, 80.7%, 0%, 34.9%)
CIE-LABlab(28.21, 51.56, -62.80)
CIE-LCHlch(28.21, 81.25, 309.38°)
OKLaboklab(40.47% 0.072 -0.1804)
OKLCHoklch(40.47% 0.194 291.7)
XYZxyz(10.7908, 5.5351, 36.5688)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5120A6 #75A620
analogous
#2032A6 #5120A6 #9420A6
triadic
#5120A6 #A65120 #20A651
tetradic
#5120A6 #A62032 #75A620 #20A694
square
#5120A6 #A62032 #75A620 #20A694
split-complementary
#5120A6 #A69420 #32A620
monochromatic
#1F0C3F #381673 #5120A6 #6B2DD6 #8F60E0

Accessibility & contrast

On white

9.97
#5120A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5120A6
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5120A6#FFFFFF#000000##FFFFFF
##5120A61.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#344764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5120a6;
/* rgb */ color: rgb(81, 32, 166);
/* oklch */ color: oklch(40.5% 0.194 291.7);
Tailwind
colors: {
  custom: {
    50: '#8b62c2',
    500: '#5120a6',
    950: '#000000',
  },
}
SCSS
$custom: #5120a6;
$custom-light: #8b62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5120a6",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 261.94,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40468,
    "c": 0.19425,
    "h": 291.7
  },
  "luminance": 0.05536
}

Semantic roles & 50–950 ramp

primary
#5120A6
secondary
#9FC55D
accent
#EB3DAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5120A6

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

Preview Lab → · Contrast checker → · Palette generator →

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