#5127B3#5127B3

#5127B3 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.202 H 288.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5127B3
RGBrgb(81, 39, 179)
HSLhsl(258, 64%, 43%)
HSVhsv(258, 78%, 70%)
CMYKcmyk(54.7%, 78.2%, 0%, 29.8%)
CIE-LABlab(30.53, 52.02, -66.78)
CIE-LCHlch(30.53, 84.65, 307.92°)
OKLaboklab(42.47% 0.063 -0.1921)
OKLCHoklch(42.47% 0.202 288.1)
XYZxyz(12.2531, 6.4544, 43.2393)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5127B3 #89B327
analogous
#2743B3 #5127B3 #9727B3
triadic
#5127B3 #B35127 #27B351
tetradic
#5127B3 #B32743 #89B327 #27B397
square
#5127B3 #B32743 #89B327 #27B397
split-complementary
#5127B3 #B39727 #43B327
monochromatic
#24114E #3A1C81 #5127B3 #6E41D6 #9474E1

Accessibility & contrast

On white

9.17
#5127B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5127B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5127B3
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5127B3#FFFFFF#000000##FFFFFF
##5127B31.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#284F6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5127b3;
/* rgb */ color: rgb(81, 39, 179);
/* oklch */ color: oklch(42.5% 0.202 288.1);
Tailwind
colors: {
  custom: {
    50: '#8d67cb',
    500: '#5127b3',
    950: '#000000',
  },
}
SCSS
$custom: #5127b3;
$custom-light: #8d67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5127b3",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 258,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42465,
    "c": 0.2022,
    "h": 288.1
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#5127B3
secondary
#ADC86E
accent
#E741B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5127B3

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

Preview Lab → · Contrast checker → · Palette generator →

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