#5121A7#5121A7

#5121A7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.194 H 291.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5121A7
RGBrgb(81, 33, 167)
HSLhsl(261, 67%, 39%)
HSVhsv(261, 80%, 65%)
CMYKcmyk(51.5%, 80.2%, 0%, 34.5%)
CIE-LABlab(28.45, 51.40, -63.01)
CIE-LCHlch(28.45, 81.31, 309.21°)
OKLaboklab(40.67% 0.0709 -0.181)
OKLCHoklch(40.67% 0.194 291.4)
XYZxyz(10.9103, 5.6266, 37.0629)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5121A7 #77A721
analogous
#2134A7 #5121A7 #9421A7
triadic
#5121A7 #A75121 #21A751
tetradic
#5121A7 #A72134 #77A721 #21A794
square
#5121A7 #A72134 #77A721 #21A794
split-complementary
#5121A7 #A79421 #34A721
monochromatic
#1F0D41 #381774 #5121A7 #6B2FD6 #8F62E0

Accessibility & contrast

On white

9.88
#5121A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5121A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5121A7
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5121A7#FFFFFF#000000##FFFFFF
##5121A71.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#334864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5121a7;
/* rgb */ color: rgb(81, 33, 167);
/* oklch */ color: oklch(40.7% 0.194 291.4);
Tailwind
colors: {
  custom: {
    50: '#8b63c2',
    500: '#5121a7',
    950: '#000000',
  },
}
SCSS
$custom: #5121a7;
$custom-light: #8b63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5121a7",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 261.493,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40666,
    "c": 0.19444,
    "h": 291.4
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#5121A7
secondary
#A0C55F
accent
#EA3EAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5121A7

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

Preview Lab → · Contrast checker → · Palette generator →

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