#5125A2#5125A2

#5125A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.185 H 292.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5125A2
RGBrgb(81, 37, 162)
HSLhsl(261, 63%, 39%)
HSVhsv(261, 77%, 64%)
CMYKcmyk(50%, 77.2%, 0%, 36.5%)
CIE-LABlab(28.59, 48.27, -59.75)
CIE-LCHlch(28.59, 76.81, 308.94°)
OKLaboklab(40.62% 0.0694 -0.1715)
OKLCHoklch(40.62% 0.185 292)
XYZxyz(10.5747, 5.6807, 34.7147)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125A2 #76A225
analogous
#2538A2 #5125A2 #9025A2
triadic
#5125A2 #A25125 #25A251
tetradic
#5125A2 #A22538 #76A225 #25A290
square
#5125A2 #A22538 #76A225 #25A290
split-complementary
#5125A2 #A29025 #38A225
monochromatic
#1F0E3E #381A70 #5125A2 #6B34D1 #8F65DC

Accessibility & contrast

On white

9.83
#5125A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5125A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125A2
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125A2#FFFFFF#000000##FFFFFF
##5125A21.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#364862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5125a2;
/* rgb */ color: rgb(81, 37, 162);
/* oklch */ color: oklch(40.6% 0.185 292.0);
Tailwind
colors: {
  custom: {
    50: '#8a65bf',
    500: '#5125a2',
    950: '#000000',
  },
}
SCSS
$custom: #5125a2;
$custom-light: #8a65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5125a2",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 261.12,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4062,
    "c": 0.18506,
    "h": 292
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#5125A2
secondary
#A0C261
accent
#E642AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5125A2

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

Preview Lab → · Contrast checker → · Palette generator →

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