#5127BA#5127BA

#5127BA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.2% C 0.210 H 286.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5127BA
RGBrgb(81, 39, 186)
HSLhsl(257, 65%, 44%)
HSVhsv(257, 79%, 73%)
CMYKcmyk(56.5%, 79%, 0%, 27.1%)
CIE-LABlab(31.22, 53.95, -69.81)
CIE-LCHlch(31.22, 88.22, 307.70°)
OKLaboklab(43.15% 0.0609 -0.201)
OKLCHoklch(43.15% 0.21 286.8)
XYZxyz(12.9791, 6.7448, 47.0628)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127BA #90BA27
analogous
#2747BA #5127BA #9B27BA
triadic
#5127BA #BA5127 #27BA51
tetradic
#5127BA #BA2747 #90BA27 #27BA9B
square
#5127BA #BA2747 #90BA27 #27BA9B
split-complementary
#5127BA #BA9B27 #47BA27
monochromatic
#251255 #3B1C87 #5127BA #7046D8 #9779E3

Accessibility & contrast

On white

8.94
#5127BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5127BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5127BA#FFFFFF#000000##FFFFFF
##5127BA1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#1F5271
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5127ba;
/* rgb */ color: rgb(81, 39, 186);
/* oklch */ color: oklch(43.2% 0.210 286.8);
Tailwind
colors: {
  custom: {
    50: '#8e67d0',
    500: '#5127ba',
    950: '#000000',
  },
}
SCSS
$custom: #5127ba;
$custom-light: #8e67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5127ba",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 257.143,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43151,
    "c": 0.21,
    "h": 286.8
  },
  "luminance": 0.06746
}

Semantic roles & 50–950 ramp

primary
#5127BA
secondary
#B1CB72
accent
#E840B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5127BA

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

Preview Lab → · Contrast checker → · Palette generator →

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