#5124A8#5124A8

#5124A8 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.193 H 290.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5124A8
RGBrgb(81, 36, 168)
HSLhsl(260, 65%, 40%)
HSVhsv(260, 79%, 66%)
CMYKcmyk(51.8%, 78.6%, 0%, 34.1%)
CIE-LABlab(29.00, 50.36, -62.71)
CIE-LCHlch(29.00, 80.43, 308.77°)
OKLaboklab(41.08% 0.0685 -0.1802)
OKLCHoklch(41.08% 0.193 290.8)
XYZxyz(11.0901, 5.8378, 37.5807)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124A8 #7BA824
analogous
#2439A8 #5124A8 #9324A8
triadic
#5124A8 #A85124 #24A851
tetradic
#5124A8 #A82439 #7BA824 #24A893
square
#5124A8 #A82439 #7BA824 #24A893
split-complementary
#5124A8 #A89324 #39A824
monochromatic
#200E43 #391976 #5124A8 #6B35D4 #9068DF

Accessibility & contrast

On white

9.69
#5124A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5124A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124A8
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124A8#FFFFFF#000000##FFFFFF
##5124A81.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#324A66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5124a8;
/* rgb */ color: rgb(81, 36, 168);
/* oklch */ color: oklch(41.1% 0.193 290.8);
Tailwind
colors: {
  custom: {
    50: '#8b65c3',
    500: '#5124a8',
    950: '#000000',
  },
}
SCSS
$custom: #5124a8;
$custom-light: #8b65c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5124a8",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 260.455,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.41077,
    "c": 0.19276,
    "h": 290.8
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5124A8

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

Preview Lab → · Contrast checker → · Palette generator →

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