#5127AB#5127AB

#5127AB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.193 H 289.8°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5127AB
RGBrgb(81, 39, 171)
HSLhsl(259, 63%, 41%)
HSVhsv(259, 77%, 67%)
CMYKcmyk(52.6%, 77.2%, 0%, 32.9%)
CIE-LABlab(29.76, 49.81, -63.26)
CIE-LCHlch(29.76, 80.51, 308.22°)
OKLaboklab(41.7% 0.0653 -0.1818)
OKLCHoklch(41.7% 0.193 289.8)
XYZxyz(11.4674, 6.1401, 39.1011)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127AB #81AB27
analogous
#273FAB #5127AB #9327AB
triadic
#5127AB #AB5127 #27AB51
tetradic
#5127AB #AB273F #81AB27 #27AB93
square
#5127AB #AB273F #81AB27 #27AB93
split-complementary
#5127AB #AB9327 #3FAB27
monochromatic
#221047 #391C79 #5127AB #6C3DD3 #926EDE

Accessibility & contrast

On white

9.42
#5127AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5127AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5127AB#FFFFFF#000000##FFFFFF
##5127AB1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#2F4C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5127ab;
/* rgb */ color: rgb(81, 39, 171);
/* oklch */ color: oklch(41.7% 0.193 289.8);
Tailwind
colors: {
  custom: {
    50: '#8c66c5',
    500: '#5127ab',
    950: '#000000',
  },
}
SCSS
$custom: #5127ab;
$custom-light: #8c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5127ab",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 259.091,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41697,
    "c": 0.19321,
    "h": 289.8
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#5127AB
secondary
#A8C569
accent
#E642B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5127AB

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

Preview Lab → · Contrast checker → · Palette generator →

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