#5121A4#5121A4

#5121A4 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.191 H 292.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5121A4
RGBrgb(81, 33, 164)
HSLhsl(262, 66%, 39%)
HSVhsv(262, 80%, 64%)
CMYKcmyk(50.6%, 79.9%, 0%, 35.7%)
CIE-LABlab(28.16, 50.60, -61.67)
CIE-LCHlch(28.16, 79.77, 309.37°)
OKLaboklab(40.38% 0.0719 -0.1771)
OKLCHoklch(40.38% 0.191 292.1)
XYZxyz(10.6361, 5.5170, 35.6192)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5121A4 #74A421
analogous
#2132A4 #5121A4 #9221A4
triadic
#5121A4 #A45121 #21A451
tetradic
#5121A4 #A42132 #74A421 #21A492
square
#5121A4 #A42132 #74A421 #21A492
split-complementary
#5121A4 #A49221 #32A421
monochromatic
#1F0C3E #381771 #5121A4 #6B2DD5 #8F60DF

Accessibility & contrast

On white

9.98
#5121A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5121A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5121A4
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5121A4#FFFFFF#000000##FFFFFF
##5121A41.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#354763
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5121a4;
/* rgb */ color: rgb(81, 33, 164);
/* oklch */ color: oklch(40.4% 0.191 292.1);
Tailwind
colors: {
  custom: {
    50: '#8b63c0',
    500: '#5121a4',
    950: '#000000',
  },
}
SCSS
$custom: #5121a4;
$custom-light: #8b63c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5121a4",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 261.985,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40376,
    "c": 0.19116,
    "h": 292.1
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#5121A4
secondary
#9EC45D
accent
#E93EAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5121A4

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

Preview Lab → · Contrast checker → · Palette generator →

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