#5128AB#5128AB

#5128AB is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.192 H 289.6°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5128AB
RGBrgb(81, 40, 171)
HSLhsl(259, 62%, 41%)
HSVhsv(259, 77%, 67%)
CMYKcmyk(52.6%, 76.6%, 0%, 32.9%)
CIE-LABlab(29.93, 49.34, -62.99)
CIE-LCHlch(29.93, 80.01, 308.07°)
OKLaboklab(41.81% 0.0646 -0.181)
OKLCHoklch(41.81% 0.192 289.6)
XYZxyz(11.5007, 6.2067, 39.1122)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128AB #82AB28
analogous
#2841AB #5128AB #9328AB
triadic
#5128AB #AB5128 #28AB51
tetradic
#5128AB #AB2841 #82AB28 #28AB93
square
#5128AB #AB2841 #82AB28 #28AB93
split-complementary
#5128AB #AB9328 #41AB28
monochromatic
#221148 #3A1C79 #5128AB #6C3ED2 #9270DE

Accessibility & contrast

On white

9.37
#5128AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5128AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5128AB
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5128AB#FFFFFF#000000##FFFFFF
##5128AB1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#2F4D68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5128ab;
/* rgb */ color: rgb(81, 40, 171);
/* oklch */ color: oklch(41.8% 0.192 289.6);
Tailwind
colors: {
  custom: {
    50: '#8c67c5',
    500: '#5128ab',
    950: '#000000',
  },
}
SCSS
$custom: #5128ab;
$custom-light: #8c67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5128ab",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 258.779,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.19221,
    "h": 289.6
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

primary
#5128AB
secondary
#A8C46A
accent
#E543B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5128AB

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

Preview Lab → · Contrast checker → · Palette generator →

#5128AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva