#5127A4#5127A4

#5127A4 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.185 H 291.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5127A4
RGBrgb(81, 39, 164)
HSLhsl(260, 62%, 40%)
HSVhsv(260, 76%, 64%)
CMYKcmyk(50.6%, 76.2%, 0%, 35.7%)
CIE-LABlab(29.11, 47.88, -60.11)
CIE-LCHlch(29.11, 76.85, 308.54°)
OKLaboklab(41.04% 0.0673 -0.1726)
OKLCHoklch(41.04% 0.185 291.3)
XYZxyz(10.8178, 5.8803, 35.6798)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127A4 #7AA427
analogous
#273CA4 #5127A4 #9027A4
triadic
#5127A4 #A45127 #27A451
tetradic
#5127A4 #A4273C #7AA427 #27A490
square
#5127A4 #A4273C #7AA427 #27A490
split-complementary
#5127A4 #A49027 #3CA427
monochromatic
#200F41 #391B73 #5127A4 #6B38D0 #906ADC

Accessibility & contrast

On white

9.65
#5127A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5127A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5127A4
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5127A4#FFFFFF#000000##FFFFFF
##5127A41.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#354964
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5127a4;
/* rgb */ color: rgb(81, 39, 164);
/* oklch */ color: oklch(41.0% 0.185 291.3);
Tailwind
colors: {
  custom: {
    50: '#8b66c0',
    500: '#5127a4',
    950: '#000000',
  },
}
SCSS
$custom: #5127a4;
$custom-light: #8b66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5127a4",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 260.16,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41038,
    "c": 0.18526,
    "h": 291.3
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

primary
#5127A4
secondary
#A3C265
accent
#E543AE
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5127A4

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

Preview Lab → · Contrast checker → · Palette generator →

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