#5127B6#5127B6

#5127B6 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.206 H 287.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5127B6
RGBrgb(81, 39, 182)
HSLhsl(258, 65%, 43%)
HSVhsv(258, 79%, 71%)
CMYKcmyk(55.5%, 78.6%, 0%, 28.6%)
CIE-LABlab(30.82, 52.85, -68.08)
CIE-LCHlch(30.82, 86.19, 307.82°)
OKLaboklab(42.76% 0.0621 -0.196)
OKLCHoklch(42.76% 0.206 287.6)
XYZxyz(12.5598, 6.5771, 44.8546)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127B6 #8CB627
analogous
#2745B6 #5127B6 #9827B6
triadic
#5127B6 #B65127 #27B651
tetradic
#5127B6 #B62745 #8CB627 #27B698
square
#5127B6 #B62745 #8CB627 #27B698
split-complementary
#5127B6 #B69827 #45B627
monochromatic
#241151 #3B1C84 #5127B6 #6F43D7 #9576E2

Accessibility & contrast

On white

9.07
#5127B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5127B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5127B6#FFFFFF#000000##FFFFFF
##5127B61.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#25516E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5127b6;
/* rgb */ color: rgb(81, 39, 182);
/* oklch */ color: oklch(42.8% 0.206 287.6);
Tailwind
colors: {
  custom: {
    50: '#8d67cd',
    500: '#5127b6',
    950: '#000000',
  },
}
SCSS
$custom: #5127b6;
$custom-light: #8d67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5127b6",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 257.622,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42758,
    "c": 0.20555,
    "h": 287.6
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#5127B6
secondary
#AFC970
accent
#E840B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #5127B6

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

Preview Lab → · Contrast checker → · Palette generator →

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