#5124A7#5124A7

#5124A7 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.192 H 291.0°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5124A7
RGBrgb(81, 36, 167)
HSLhsl(261, 65%, 40%)
HSVhsv(261, 78%, 65%)
CMYKcmyk(51.5%, 78.4%, 0%, 34.5%)
CIE-LABlab(28.90, 50.09, -62.26)
CIE-LCHlch(28.90, 79.91, 308.82°)
OKLaboklab(40.98% 0.0688 -0.1789)
OKLCHoklch(40.98% 0.192 291)
XYZxyz(10.9973, 5.8007, 37.0919)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124A7 #7AA724
analogous
#2438A7 #5124A7 #9324A7
triadic
#5124A7 #A75124 #24A751
tetradic
#5124A7 #A72438 #7AA724 #24A793
square
#5124A7 #A72438 #7AA724 #24A793
split-complementary
#5124A7 #A79324 #38A724
monochromatic
#200E42 #391975 #5124A7 #6B35D3 #9067DE

Accessibility & contrast

On white

9.72
#5124A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5124A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124A7
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124A7#FFFFFF#000000##FFFFFF
##5124A71.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#334965
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5124a7;
/* rgb */ color: rgb(81, 36, 167);
/* oklch */ color: oklch(41.0% 0.192 291.0);
Tailwind
colors: {
  custom: {
    50: '#8b64c2',
    500: '#5124a7',
    950: '#000000',
  },
}
SCSS
$custom: #5124a7;
$custom-light: #8b64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5124a7",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 260.611,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40981,
    "c": 0.19165,
    "h": 291
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#5124A7
secondary
#A3C463
accent
#E840AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5124A7

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

Preview Lab → · Contrast checker → · Palette generator →

#5124A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva