#5125A9#5125A9

#5125A9 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.193 H 290.5°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5125A9
RGBrgb(81, 37, 169)
HSLhsl(260, 64%, 40%)
HSVhsv(260, 78%, 66%)
CMYKcmyk(52.1%, 78.1%, 0%, 33.7%)
CIE-LABlab(29.25, 50.18, -62.89)
CIE-LCHlch(29.25, 80.46, 308.59°)
OKLaboklab(41.28% 0.0674 -0.1807)
OKLCHoklch(41.28% 0.193 290.5)
XYZxyz(11.2143, 5.9366, 38.0834)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125A9 #7DA925
analogous
#253BA9 #5125A9 #9325A9
triadic
#5125A9 #A95125 #25A951
tetradic
#5125A9 #A9253B #7DA925 #25A993
square
#5125A9 #A9253B #7DA925 #25A993
split-complementary
#5125A9 #A99325 #3BA925
monochromatic
#210F45 #391A77 #5125A9 #6C38D3 #916ADE

Accessibility & contrast

On white

9.60
#5125A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5125A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125A9
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125A9#FFFFFF#000000##FFFFFF
##5125A91.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#314A66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5125a9;
/* rgb */ color: rgb(81, 37, 169);
/* oklch */ color: oklch(41.3% 0.193 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b65c4',
    500: '#5125a9',
    950: '#000000',
  },
}
SCSS
$custom: #5125a9;
$custom-light: #8b65c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5125a9",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 260,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41282,
    "c": 0.19291,
    "h": 290.5
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#5125A9
secondary
#A5C465
accent
#E741B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5125A9

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

Preview Lab → · Contrast checker → · Palette generator →

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