#5122AF#5122AF

#5122AF is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.5% C 0.202 H 289.5°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5122AF
RGBrgb(81, 34, 175)
HSLhsl(260, 67%, 41%)
HSVhsv(260, 81%, 69%)
CMYKcmyk(53.7%, 80.6%, 0%, 31.4%)
CIE-LABlab(29.38, 53.12, -66.28)
CIE-LCHlch(29.38, 84.94, 308.71°)
OKLaboklab(41.55% 0.0676 -0.1906)
OKLCHoklch(41.55% 0.202 289.5)
XYZxyz(11.7010, 5.9880, 41.0884)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122AF #80AF22
analogous
#2239AF #5122AF #9722AF
triadic
#5122AF #AF5122 #22AF51
tetradic
#5122AF #AF2239 #80AF22 #22AF97
square
#5122AF #AF2239 #80AF22 #22AF97
split-complementary
#5122AF #AF9722 #39AF22
monochromatic
#220E49 #39187C #5122AF #6C36D8 #9269E2

Accessibility & contrast

On white

9.56
#5122AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5122AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122AF
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122AF#FFFFFF#000000##FFFFFF
##5122AF1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#2C4C69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5122af;
/* rgb */ color: rgb(81, 34, 175);
/* oklch */ color: oklch(41.5% 0.202 289.5);
Tailwind
colors: {
  custom: {
    50: '#8d64c8',
    500: '#5122af',
    950: '#000000',
  },
}
SCSS
$custom: #5122af;
$custom-light: #8d64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5122af",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 260,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.20228,
    "h": 289.5
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#5122AF
secondary
#A7C865
accent
#EA3DB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5122AF

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

Preview Lab → · Contrast checker → · Palette generator →

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