#5128AD#5128AD

#5128AD is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.194 H 289.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5128AD
RGBrgb(81, 40, 173)
HSLhsl(258, 62%, 42%)
HSVhsv(258, 77%, 68%)
CMYKcmyk(53.2%, 76.9%, 0%, 32.2%)
CIE-LABlab(30.12, 49.89, -63.88)
CIE-LCHlch(30.12, 81.05, 307.99°)
OKLaboklab(42% 0.064 -0.1836)
OKLCHoklch(42% 0.194 289.2)
XYZxyz(11.6928, 6.2835, 40.1238)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128AD #84AD28
analogous
#2842AD #5128AD #9428AD
triadic
#5128AD #AD5128 #28AD51
tetradic
#5128AD #AD2842 #84AD28 #28AD94
square
#5128AD #AD2842 #84AD28 #28AD94
split-complementary
#5128AD #AD9428 #42AD28
monochromatic
#22114A #3A1D7B #5128AD #6D3FD3 #9371DE

Accessibility & contrast

On white

9.31
#5128AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5128AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5128AD
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5128AD#FFFFFF#000000##FFFFFF
##5128AD1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#2E4D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5128ad;
/* rgb */ color: rgb(81, 40, 173);
/* oklch */ color: oklch(42.0% 0.194 289.2);
Tailwind
colors: {
  custom: {
    50: '#8c67c7',
    500: '#5128ad',
    950: '#000000',
  },
}
SCSS
$custom: #5128ad;
$custom-light: #8c67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5128ad",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 258.496,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42002,
    "c": 0.19448,
    "h": 289.2
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#5128AD
secondary
#AAC56C
accent
#E642B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5128AD

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

Preview Lab → · Contrast checker → · Palette generator →

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