#5127AE#5127AE

#5127AE is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.197 H 289.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5127AE
RGBrgb(81, 39, 174)
HSLhsl(259, 63%, 42%)
HSVhsv(259, 78%, 68%)
CMYKcmyk(53.4%, 77.6%, 0%, 31.8%)
CIE-LABlab(30.05, 50.64, -64.59)
CIE-LCHlch(30.05, 82.07, 308.10°)
OKLaboklab(41.98% 0.0644 -0.1857)
OKLCHoklch(41.98% 0.197 289.1)
XYZxyz(11.7566, 6.2558, 40.6242)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127AE #84AE27
analogous
#2740AE #5127AE #9527AE
triadic
#5127AE #AE5127 #27AE51
tetradic
#5127AE #AE2740 #84AE27 #27AE95
square
#5127AE #AE2740 #84AE27 #27AE95
split-complementary
#5127AE #AE9527 #40AE27
monochromatic
#22114A #3A1C7C #5127AE #6D3ED4 #9370DF

Accessibility & contrast

On white

9.33
#5127AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5127AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5127AE#FFFFFF#000000##FFFFFF
##5127AE1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#2D4D6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5127ae;
/* rgb */ color: rgb(81, 39, 174);
/* oklch */ color: oklch(42.0% 0.197 289.1);
Tailwind
colors: {
  custom: {
    50: '#8c66c7',
    500: '#5127ae',
    950: '#000000',
  },
}
SCSS
$custom: #5127ae;
$custom-light: #8c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5127ae",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 258.667,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41983,
    "c": 0.19659,
    "h": 289.1
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#5127AE
secondary
#AAC66B
accent
#E641B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5127AE

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

Preview Lab → · Contrast checker → · Palette generator →

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