#5122A6#5122A6

#5122A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.192 H 291.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5122A6
RGBrgb(81, 34, 166)
HSLhsl(261, 66%, 39%)
HSVhsv(261, 80%, 65%)
CMYKcmyk(51.2%, 79.5%, 0%, 34.9%)
CIE-LABlab(28.50, 50.71, -62.32)
CIE-LCHlch(28.50, 80.34, 309.13°)
OKLaboklab(40.67% 0.0705 -0.179)
OKLCHoklch(40.67% 0.192 291.5)
XYZxyz(10.8463, 5.6461, 36.5873)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122A6 #77A622
analogous
#2235A6 #5122A6 #9322A6
triadic
#5122A6 #A65122 #22A651
tetradic
#5122A6 #A62235 #77A622 #22A693
square
#5122A6 #A62235 #77A622 #22A693
split-complementary
#5122A6 #A69322 #35A622
monochromatic
#1F0D40 #381873 #5122A6 #6B30D5 #8F63DF

Accessibility & contrast

On white

9.86
#5122A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5122A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122A6
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122A6#FFFFFF#000000##FFFFFF
##5122A61.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#344864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5122a6;
/* rgb */ color: rgb(81, 34, 166);
/* oklch */ color: oklch(40.7% 0.192 291.5);
Tailwind
colors: {
  custom: {
    50: '#8b63c2',
    500: '#5122a6',
    950: '#000000',
  },
}
SCSS
$custom: #5122a6;
$custom-light: #8b63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5122a6",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 261.364,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40672,
    "c": 0.19243,
    "h": 291.5
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#5122A6
secondary
#A0C45F
accent
#E93FAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5122A6

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

Preview Lab → · Contrast checker → · Palette generator →

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