#5125A4#5125A4

#5125A4 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.187 H 291.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5125A4
RGBrgb(81, 37, 164)
HSLhsl(261, 63%, 39%)
HSVhsv(261, 77%, 64%)
CMYKcmyk(50.6%, 77.4%, 0%, 35.7%)
CIE-LABlab(28.78, 48.82, -60.65)
CIE-LCHlch(28.78, 77.86, 308.83°)
OKLaboklab(40.81% 0.0689 -0.1742)
OKLCHoklch(40.81% 0.187 291.6)
XYZxyz(10.7538, 5.7524, 35.6585)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125A4 #78A425
analogous
#2539A4 #5125A4 #9025A4
triadic
#5125A4 #A45125 #25A451
tetradic
#5125A4 #A42539 #78A425 #25A490
square
#5125A4 #A42539 #78A425 #25A490
split-complementary
#5125A4 #A49025 #39A425
monochromatic
#200E40 #381A72 #5125A4 #6B35D1 #9067DD

Accessibility & contrast

On white

9.76
#5125A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5125A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125A4
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125A4#FFFFFF#000000##FFFFFF
##5125A41.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#354863
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5125a4;
/* rgb */ color: rgb(81, 37, 164);
/* oklch */ color: oklch(40.8% 0.187 291.6);
Tailwind
colors: {
  custom: {
    50: '#8b65c0',
    500: '#5125a4',
    950: '#000000',
  },
}
SCSS
$custom: #5125a4;
$custom-light: #8b65c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5125a4",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 260.787,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40808,
    "c": 0.18731,
    "h": 291.6
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

primary
#5125A4
secondary
#A1C262
accent
#E642AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5125A4

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

Preview Lab → · Contrast checker → · Palette generator →

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