#5127AD#5127AD

#5127AD is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.195 H 289.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5127AD
RGBrgb(81, 39, 173)
HSLhsl(259, 63%, 42%)
HSVhsv(259, 77%, 68%)
CMYKcmyk(53.2%, 77.5%, 0%, 32.2%)
CIE-LABlab(29.95, 50.36, -64.14)
CIE-LCHlch(29.95, 81.55, 308.14°)
OKLaboklab(41.89% 0.0647 -0.1844)
OKLCHoklch(41.89% 0.195 289.3)
XYZxyz(11.6595, 6.2170, 40.1127)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127AD #83AD27
analogous
#2740AD #5127AD #9427AD
triadic
#5127AD #AD5127 #27AD51
tetradic
#5127AD #AD2740 #83AD27 #27AD94
square
#5127AD #AD2740 #83AD27 #27AD94
split-complementary
#5127AD #AD9427 #40AD27
monochromatic
#221049 #3A1C7B #5127AD #6D3ED3 #9270DF

Accessibility & contrast

On white

9.36
#5127AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5127AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5127AD
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5127AD#FFFFFF#000000##FFFFFF
##5127AD1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B1
Deuteranopia (green-blind)
#0043AB
Tritanopia (blue-blind)
#2E4D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5127ad;
/* rgb */ color: rgb(81, 39, 173);
/* oklch */ color: oklch(41.9% 0.195 289.3);
Tailwind
colors: {
  custom: {
    50: '#8c66c7',
    500: '#5127ad',
    950: '#000000',
  },
}
SCSS
$custom: #5127ad;
$custom-light: #8c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5127ad",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 258.806,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41887,
    "c": 0.19546,
    "h": 289.3
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#5127AD
secondary
#A9C66A
accent
#E642B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5127AD

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

Preview Lab → · Contrast checker → · Palette generator →

#5127AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva