#5122BC#5122BC

#5122BC is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.9% C 0.216 H 287.0°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5122BC
RGBrgb(81, 34, 188)
HSLhsl(258, 69%, 44%)
HSVhsv(258, 82%, 74%)
CMYKcmyk(56.9%, 81.9%, 0%, 26.3%)
CIE-LABlab(30.70, 56.60, -71.85)
CIE-LCHlch(30.70, 91.47, 308.23°)
OKLaboklab(42.85% 0.0632 -0.2069)
OKLCHoklch(42.85% 0.216 287)
XYZxyz(13.0397, 6.5235, 48.1393)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122BC #8DBC22
analogous
#2240BC #5122BC #9E22BC
triadic
#5122BC #BC5122 #22BC51
tetradic
#5122BC #BC2240 #8DBC22 #22BC9E
square
#5122BC #BC2240 #8DBC22 #22BC9E
split-complementary
#5122BC #BC9E22 #40BC22
monochromatic
#240F54 #3B1988 #5122BC #6F3FDC #9673E6

Accessibility & contrast

On white

9.11
#5122BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5122BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122BC
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122BC#FFFFFF#000000##FFFFFF
##5122BC1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#1D5171
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5122bc;
/* rgb */ color: rgb(81, 34, 188);
/* oklch */ color: oklch(42.9% 0.216 287.0);
Tailwind
colors: {
  custom: {
    50: '#8f65d2',
    500: '#5122bc',
    950: '#000000',
  },
}
SCSS
$custom: #5122bc;
$custom-light: #8f65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5122bc",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 188
  },
  "hsl": {
    "h": 258.312,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4285,
    "c": 0.21634,
    "h": 287
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#5122BC
secondary
#AFCD6D
accent
#EC3CB6
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5122BC

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

Preview Lab → · Contrast checker → · Palette generator →

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