#5127A8#5127A8

#5127A8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.190 H 290.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5127A8
RGBrgb(81, 39, 168)
HSLhsl(260, 62%, 41%)
HSVhsv(260, 77%, 66%)
CMYKcmyk(51.8%, 76.8%, 0%, 34.1%)
CIE-LABlab(29.48, 48.98, -61.92)
CIE-LCHlch(29.48, 78.95, 308.35°)
OKLaboklab(41.41% 0.0662 -0.1779)
OKLCHoklch(41.41% 0.19 290.4)
XYZxyz(11.1847, 6.0270, 37.6122)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127A8 #7EA827
analogous
#273DA8 #5127A8 #9127A8
triadic
#5127A8 #A85127 #27A851
tetradic
#5127A8 #A8273D #7EA827 #27A891
square
#5127A8 #A8273D #7EA827 #27A891
split-complementary
#5127A8 #A89127 #3DA827
monochromatic
#211045 #391B76 #5127A8 #6C3BD1 #916CDD

Accessibility & contrast

On white

9.52
#5127A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5127A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5127A8#FFFFFF#000000##FFFFFF
##5127A81.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#324B66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5127a8;
/* rgb */ color: rgb(81, 39, 168);
/* oklch */ color: oklch(41.4% 0.190 290.4);
Tailwind
colors: {
  custom: {
    50: '#8b66c3',
    500: '#5127a8',
    950: '#000000',
  },
}
SCSS
$custom: #5127a8;
$custom-light: #8b66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5127a8",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 259.535,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41413,
    "c": 0.18981,
    "h": 290.4
  },
  "luminance": 0.06028
}

Semantic roles & 50–950 ramp

primary
#5127A8
secondary
#A5C367
accent
#E542B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5127A8

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

Preview Lab → · Contrast checker → · Palette generator →

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