#5127AA#5127AA

#5127AA is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.192 H 290.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5127AA
RGBrgb(81, 39, 170)
HSLhsl(259, 63%, 41%)
HSVhsv(259, 77%, 67%)
CMYKcmyk(52.4%, 77.1%, 0%, 33.3%)
CIE-LABlab(29.67, 49.53, -62.81)
CIE-LCHlch(29.67, 79.99, 308.26°)
OKLaboklab(41.6% 0.0656 -0.1805)
OKLCHoklch(41.6% 0.192 290)
XYZxyz(11.3725, 6.1021, 38.6010)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127AA #80AA27
analogous
#273EAA #5127AA #9227AA
triadic
#5127AA #AA5127 #27AA51
tetradic
#5127AA #AA273E #80AA27 #27AA92
square
#5127AA #AA273E #80AA27 #27AA92
split-complementary
#5127AA #AA9227 #3EAA27
monochromatic
#221046 #391C78 #5127AA #6C3CD2 #926EDE

Accessibility & contrast

On white

9.46
#5127AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5127AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5127AA#FFFFFF#000000##FFFFFF
##5127AA1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#304C67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5127aa;
/* rgb */ color: rgb(81, 39, 170);
/* oklch */ color: oklch(41.6% 0.192 290.0);
Tailwind
colors: {
  custom: {
    50: '#8b66c4',
    500: '#5127aa',
    950: '#000000',
  },
}
SCSS
$custom: #5127aa;
$custom-light: #8b66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5127aa",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 259.237,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41602,
    "c": 0.19208,
    "h": 290
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#5127AA
secondary
#A7C469
accent
#E642B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5127AA

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

Preview Lab → · Contrast checker → · Palette generator →

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