#5125AE#5125AE

#5125AE is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.198 H 289.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5125AE
RGBrgb(81, 37, 174)
HSLhsl(259, 65%, 41%)
HSVhsv(259, 79%, 68%)
CMYKcmyk(53.4%, 78.7%, 0%, 31.8%)
CIE-LABlab(29.73, 51.55, -65.11)
CIE-LCHlch(29.73, 83.04, 308.37°)
OKLaboklab(41.76% 0.0659 -0.1872)
OKLCHoklch(41.76% 0.198 289.4)
XYZxyz(11.6927, 6.1279, 40.6029)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125AE #82AE25
analogous
#253EAE #5125AE #9625AE
triadic
#5125AE #AE5125 #25AE51
tetradic
#5125AE #AE253E #82AE25 #25AE96
square
#5125AE #AE253E #82AE25 #25AE96
split-complementary
#5125AE #AE9625 #3EAE25
monochromatic
#221049 #3A1A7C #5125AE #6C3BD5 #926DE0

Accessibility & contrast

On white

9.44
#5125AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5125AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125AE
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125AE#FFFFFF#000000##FFFFFF
##5125AE1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#2D4D69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5125ae;
/* rgb */ color: rgb(81, 37, 174);
/* oklch */ color: oklch(41.8% 0.198 289.4);
Tailwind
colors: {
  custom: {
    50: '#8c65c7',
    500: '#5125ae',
    950: '#000000',
  },
}
SCSS
$custom: #5125ae;
$custom-light: #8c65c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5125ae",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 174
  },
  "hsl": {
    "h": 259.27,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41763,
    "c": 0.19849,
    "h": 289.4
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#5125AE
secondary
#A8C668
accent
#E840B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5125AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5125AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva