#5122A7#5122A7

#5122A7 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.194 H 291.3°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5122A7
RGBrgb(81, 34, 167)
HSLhsl(261, 66%, 39%)
HSVhsv(261, 80%, 65%)
CMYKcmyk(51.5%, 79.6%, 0%, 34.5%)
CIE-LABlab(28.60, 50.97, -62.76)
CIE-LCHlch(28.60, 80.85, 309.08°)
OKLaboklab(40.77% 0.0702 -0.1803)
OKLCHoklch(40.77% 0.194 291.3)
XYZxyz(10.9384, 5.6830, 37.0723)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122A7 #78A722
analogous
#2236A7 #5122A7 #9422A7
triadic
#5122A7 #A75122 #22A751
tetradic
#5122A7 #A72236 #78A722 #22A794
square
#5122A7 #A72236 #78A722 #22A794
split-complementary
#5122A7 #A79422 #36A722
monochromatic
#200D41 #381874 #5122A7 #6B31D5 #9064DF

Accessibility & contrast

On white

9.83
#5122A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5122A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122A7
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122A7#FFFFFF#000000##FFFFFF
##5122A71.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5122a7;
/* rgb */ color: rgb(81, 34, 167);
/* oklch */ color: oklch(40.8% 0.194 291.3);
Tailwind
colors: {
  custom: {
    50: '#8b63c2',
    500: '#5122a7',
    950: '#000000',
  },
}
SCSS
$custom: #5122a7;
$custom-light: #8b63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5122a7",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 261.203,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40768,
    "c": 0.19353,
    "h": 291.3
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#5122A7
secondary
#A1C560
accent
#E93FAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5122A7

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

Preview Lab → · Contrast checker → · Palette generator →

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