#5120BC#5120BC

#5120BC is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.7% C 0.218 H 287.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5120BC
RGBrgb(81, 32, 188)
HSLhsl(259, 71%, 43%)
HSVhsv(259, 83%, 74%)
CMYKcmyk(56.9%, 83%, 0%, 26.3%)
CIE-LABlab(30.43, 57.38, -72.29)
CIE-LCHlch(30.43, 92.30, 308.44°)
OKLaboklab(42.67% 0.0643 -0.2082)
OKLCHoklch(42.67% 0.218 287.2)
XYZxyz(12.9842, 6.4125, 48.1207)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5120BC #8BBC20
analogous
#203DBC #5120BC #9F20BC
triadic
#5120BC #BC5120 #20BC51
tetradic
#5120BC #BC203D #8BBC20 #20BC9F
square
#5120BC #BC203D #8BBC20 #20BC9F
split-complementary
#5120BC #BC9F20 #3DBC20
monochromatic
#240E53 #3A1788 #5120BC #6E3BDE #9570E7

Accessibility & contrast

On white

9.20
#5120BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5120BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5120BC
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5120BC#FFFFFF#000000##FFFFFF
##5120BC1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5120bc;
/* rgb */ color: rgb(81, 32, 188);
/* oklch */ color: oklch(42.7% 0.218 287.2);
Tailwind
colors: {
  custom: {
    50: '#8f64d2',
    500: '#5120bc',
    950: '#000000',
  },
}
SCSS
$custom: #5120bc;
$custom-light: #8f64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5120bc",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 258.846,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42666,
    "c": 0.21787,
    "h": 287.2
  },
  "luminance": 0.06413
}

Semantic roles & 50–950 ramp

primary
#5120BC
secondary
#AECD6B
accent
#EE3AB5
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5120BC

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

Preview Lab → · Contrast checker → · Palette generator →

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