#5121A9#5121A9

#5121A9 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.197 H 290.9°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5121A9
RGBrgb(81, 33, 169)
HSLhsl(261, 67%, 40%)
HSVhsv(261, 80%, 66%)
CMYKcmyk(52.1%, 80.5%, 0%, 33.7%)
CIE-LABlab(28.65, 51.93, -63.89)
CIE-LCHlch(28.65, 82.34, 309.11°)
OKLaboklab(40.86% 0.0703 -0.1836)
OKLCHoklch(40.86% 0.197 290.9)
XYZxyz(11.0966, 5.7012, 38.0442)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5121A9 #79A921
analogous
#2135A9 #5121A9 #9521A9
triadic
#5121A9 #A95121 #21A951
tetradic
#5121A9 #A92135 #79A921 #21A995
square
#5121A9 #A92135 #79A921 #21A995
split-complementary
#5121A9 #A99521 #35A921
monochromatic
#200D43 #381776 #5121A9 #6B31D7 #9064E1

Accessibility & contrast

On white

9.81
#5121A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5121A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5121A9
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5121A9#FFFFFF#000000##FFFFFF
##5121A91.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#314965
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5121a9;
/* rgb */ color: rgb(81, 33, 169);
/* oklch */ color: oklch(40.9% 0.197 290.9);
Tailwind
colors: {
  custom: {
    50: '#8c63c4',
    500: '#5121a9',
    950: '#000000',
  },
}
SCSS
$custom: #5121a9;
$custom-light: #8c63c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5121a9",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 169
  },
  "hsl": {
    "h": 261.176,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4086,
    "c": 0.19662,
    "h": 290.9
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#5121A9
secondary
#A2C660
accent
#EA3EAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5121A9

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

Preview Lab → · Contrast checker → · Palette generator →

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