#5120AF#5120AF

#5120AF is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.4% C 0.204 H 289.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5120AF
RGBrgb(81, 32, 175)
HSLhsl(261, 69%, 41%)
HSVhsv(261, 82%, 69%)
CMYKcmyk(53.7%, 81.7%, 0%, 31.4%)
CIE-LABlab(29.10, 53.94, -66.75)
CIE-LCHlch(29.10, 85.82, 308.94°)
OKLaboklab(41.35% 0.0689 -0.192)
OKLCHoklch(41.35% 0.204 289.7)
XYZxyz(11.6455, 5.8770, 41.0699)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5120AF #7EAF20
analogous
#2037AF #5120AF #9820AF
triadic
#5120AF #AF5120 #20AF51
tetradic
#5120AF #AF2037 #7EAF20 #20AF98
square
#5120AF #AF2037 #7EAF20 #20AF98
split-complementary
#5120AF #AF9820 #37AF20
monochromatic
#210D48 #39177B #5120AF #6C33DA #9166E3

Accessibility & contrast

On white

9.65
#5120AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5120AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5120AF
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5120AF#FFFFFF#000000##FFFFFF
##5120AF1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B3
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#2C4B69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5120af;
/* rgb */ color: rgb(81, 32, 175);
/* oklch */ color: oklch(41.4% 0.204 289.7);
Tailwind
colors: {
  custom: {
    50: '#8d63c8',
    500: '#5120af',
    950: '#000000',
  },
}
SCSS
$custom: #5120af;
$custom-light: #8d63c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5120af",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 175
  },
  "hsl": {
    "h": 260.559,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41354,
    "c": 0.20396,
    "h": 289.7
  },
  "luminance": 0.05877
}

Semantic roles & 50–950 ramp

primary
#5120AF
secondary
#A5C862
accent
#EC3CB0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5120AF

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

Preview Lab → · Contrast checker → · Palette generator →

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