#5122A0#5122A0

#5122A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.186 H 292.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5122A0
RGBrgb(81, 34, 160)
HSLhsl(262, 65%, 38%)
HSVhsv(262, 79%, 63%)
CMYKcmyk(49.4%, 78.8%, 0%, 37.3%)
CIE-LABlab(27.93, 49.10, -59.62)
CIE-LCHlch(27.93, 77.23, 309.47°)
OKLaboklab(40.1% 0.0724 -0.1711)
OKLCHoklch(40.1% 0.186 292.9)
XYZxyz(10.3088, 5.4311, 33.7560)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122A0 #71A022
analogous
#2232A0 #5122A0 #9022A0
triadic
#5122A0 #A05122 #22A051
tetradic
#5122A0 #A02232 #71A022 #22A090
square
#5122A0 #A02232 #71A022 #22A090
split-complementary
#5122A0 #A09022 #32A022
monochromatic
#1E0D3B #37176E #5122A0 #6B2DD2 #8E5FDD

Accessibility & contrast

On white

10.07
#5122A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5122A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122A0
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122A0#FFFFFF#000000##FFFFFF
##5122A01.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5122a0;
/* rgb */ color: rgb(81, 34, 160);
/* oklch */ color: oklch(40.1% 0.186 292.9);
Tailwind
colors: {
  custom: {
    50: '#8a63bd',
    500: '#5122a0',
    950: '#000000',
  },
}
SCSS
$custom: #5122a0;
$custom-light: #8a63bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5122a0",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 262.381,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.401,
    "c": 0.18582,
    "h": 292.9
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#5122A0
secondary
#9CC25C
accent
#E840A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5122A0

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

Preview Lab → · Contrast checker → · Palette generator →

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