#5121A0#5121A0

#5121A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.187 H 293.1°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5121A0
RGBrgb(81, 33, 160)
HSLhsl(263, 66%, 38%)
HSVhsv(263, 79%, 63%)
CMYKcmyk(49.4%, 79.4%, 0%, 37.3%)
CIE-LABlab(27.78, 49.54, -59.87)
CIE-LCHlch(27.78, 77.71, 309.60°)
OKLaboklab(39.99% 0.0732 -0.1719)
OKLCHoklch(39.99% 0.187 293.1)
XYZxyz(10.2806, 5.3748, 33.7466)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5121A0 #70A021
analogous
#2131A0 #5121A0 #9021A0
triadic
#5121A0 #A05121 #21A051
tetradic
#5121A0 #A02131 #70A021 #21A090
square
#5121A0 #A02131 #70A021 #21A090
split-complementary
#5121A0 #A09021 #31A021
monochromatic
#1E0C3B #37176D #5121A0 #6B2BD3 #8E5EDE

Accessibility & contrast

On white

10.12
#5121A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5121A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5121A0
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5121A0#FFFFFF#000000##FFFFFF
##5121A01.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#384560
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5121a0;
/* rgb */ color: rgb(81, 33, 160);
/* oklch */ color: oklch(40.0% 0.187 293.1);
Tailwind
colors: {
  custom: {
    50: '#8a63bd',
    500: '#5121a0',
    950: '#000000',
  },
}
SCSS
$custom: #5121a0;
$custom-light: #8a63bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5121a0",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 160
  },
  "hsl": {
    "h": 262.677,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39993,
    "c": 0.18679,
    "h": 293.1
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#5121A0
secondary
#9BC25B
accent
#E93FA9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5121A0

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

Preview Lab → · Contrast checker → · Palette generator →

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