#5122BD#5122BD

#5122BD is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.0% C 0.217 H 286.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5122BD
RGBrgb(81, 34, 189)
HSLhsl(258, 70%, 44%)
HSVhsv(258, 82%, 74%)
CMYKcmyk(57.1%, 82%, 0%, 25.9%)
CIE-LABlab(30.80, 56.87, -72.27)
CIE-LCHlch(30.80, 91.96, 308.20°)
OKLaboklab(42.95% 0.0629 -0.2081)
OKLCHoklch(42.95% 0.217 286.8)
XYZxyz(13.1479, 6.5668, 48.7089)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122BD #8EBD22
analogous
#2240BD #5122BD #9E22BD
triadic
#5122BD #BD5122 #22BD51
tetradic
#5122BD #BD2240 #8EBD22 #22BD9E
square
#5122BD #BD2240 #8EBD22 #22BD9E
split-complementary
#5122BD #BD9E22 #40BD22
monochromatic
#250F55 #3B1989 #5122BD #6F40DD #9673E6

Accessibility & contrast

On white

9.08
#5122BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5122BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122BD
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122BD#FFFFFF#000000##FFFFFF
##5122BD1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC1
Deuteranopia (green-blind)
#0044BA
Tritanopia (blue-blind)
#1B5271
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5122bd;
/* rgb */ color: rgb(81, 34, 189);
/* oklch */ color: oklch(43.0% 0.217 286.8);
Tailwind
colors: {
  custom: {
    50: '#8f65d2',
    500: '#5122bd',
    950: '#000000',
  },
}
SCSS
$custom: #5122bd;
$custom-light: #8f65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5122bd",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 258.194,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42951,
    "c": 0.21742,
    "h": 286.8
  },
  "luminance": 0.06568
}

Semantic roles & 50–950 ramp

primary
#5122BD
secondary
#B0CD6E
accent
#EC3BB7
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5122BD

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

Preview Lab → · Contrast checker → · Palette generator →

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