#5121A5#5121A5

#5121A5 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.192 H 291.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5121A5
RGBrgb(81, 33, 165)
HSLhsl(262, 67%, 39%)
HSVhsv(262, 80%, 65%)
CMYKcmyk(50.9%, 80%, 0%, 35.3%)
CIE-LABlab(28.26, 50.87, -62.12)
CIE-LCHlch(28.26, 80.29, 309.32°)
OKLaboklab(40.47% 0.0716 -0.1784)
OKLCHoklch(40.47% 0.192 291.9)
XYZxyz(10.7268, 5.5532, 36.0967)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5121A5 #75A521
analogous
#2133A5 #5121A5 #9321A5
triadic
#5121A5 #A55121 #21A551
tetradic
#5121A5 #A52133 #75A521 #21A593
square
#5121A5 #A52133 #75A521 #21A593
split-complementary
#5121A5 #A59321 #33A521
monochromatic
#1F0D3F #381772 #5121A5 #6B2ED5 #8F61DF

Accessibility & contrast

On white

9.95
#5121A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5121A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5121A5
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5121A5#FFFFFF#000000##FFFFFF
##5121A51.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5121a5;
/* rgb */ color: rgb(81, 33, 165);
/* oklch */ color: oklch(40.5% 0.192 291.9);
Tailwind
colors: {
  custom: {
    50: '#8b63c1',
    500: '#5121a5',
    950: '#000000',
  },
}
SCSS
$custom: #5121a5;
$custom-light: #8b63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5121a5",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 261.818,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40472,
    "c": 0.19226,
    "h": 291.9
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#5121A5
secondary
#9FC45E
accent
#EA3EAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5121A5

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

Preview Lab → · Contrast checker → · Palette generator →

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