#5121BC#5121BC

#5121BC is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.8% C 0.217 H 287.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5121BC
RGBrgb(81, 33, 188)
HSLhsl(259, 70%, 43%)
HSVhsv(259, 82%, 74%)
CMYKcmyk(56.9%, 82.4%, 0%, 26.3%)
CIE-LABlab(30.56, 56.99, -72.07)
CIE-LCHlch(30.56, 91.89, 308.34°)
OKLaboklab(42.76% 0.0638 -0.2075)
OKLCHoklch(42.76% 0.217 287.1)
XYZxyz(13.0116, 6.4672, 48.1299)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5121BC #8CBC21
analogous
#213EBC #5121BC #9E21BC
triadic
#5121BC #BC5121 #21BC51
tetradic
#5121BC #BC213E #8CBC21 #21BC9E
square
#5121BC #BC213E #8CBC21 #21BC9E
split-complementary
#5121BC #BC9E21 #3EBC21
monochromatic
#240F54 #3B1888 #5121BC #6F3DDD #9571E6

Accessibility & contrast

On white

9.16
#5121BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5121BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5121BC
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5121BC#FFFFFF#000000##FFFFFF
##5121BC1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5121bc;
/* rgb */ color: rgb(81, 33, 188);
/* oklch */ color: oklch(42.8% 0.217 287.1);
Tailwind
colors: {
  custom: {
    50: '#8f64d2',
    500: '#5121bc',
    950: '#000000',
  },
}
SCSS
$custom: #5121bc;
$custom-light: #8f64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5121bc",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 258.581,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42757,
    "c": 0.21712,
    "h": 287.1
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

primary
#5121BC
secondary
#AFCD6C
accent
#ED3BB6
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5121BC

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

Preview Lab → · Contrast checker → · Palette generator →

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