#5124C7#5124C7

#5124C7 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.2% C 0.227 H 284.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5124C7
RGBrgb(81, 36, 199)
HSLhsl(257, 69%, 46%)
HSVhsv(257, 82%, 78%)
CMYKcmyk(59.3%, 81.9%, 0%, 22%)
CIE-LABlab(32.11, 58.75, -75.99)
CIE-LCHlch(32.11, 96.05, 307.71°)
OKLaboklab(44.16% 0.0584 -0.219)
OKLCHoklch(44.16% 0.227 284.9)
XYZxyz(14.3299, 7.1337, 54.6436)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124C7 #9AC724
analogous
#2449C7 #5124C7 #A224C7
triadic
#5124C7 #C75124 #24C751
tetradic
#5124C7 #C72449 #9AC724 #24C7A2
square
#5124C7 #C72449 #9AC724 #24C7A2
split-complementary
#5124C7 #C7A224 #49C724
monochromatic
#27115F #3C1B93 #5124C7 #734ADE #9B7EE8

Accessibility & contrast

On white

8.65
#5124C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5124C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124C7
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124C7#FFFFFF#000000##FFFFFF
##5124C71.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050CB
Deuteranopia (green-blind)
#0046C4
Tritanopia (blue-blind)
#005778
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5124c7;
/* rgb */ color: rgb(81, 36, 199);
/* oklch */ color: oklch(44.2% 0.227 284.9);
Tailwind
colors: {
  custom: {
    50: '#9066d9',
    500: '#5124c7',
    950: '#000000',
  },
}
SCSS
$custom: #5124c7;
$custom-light: #9066d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5124c7",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 199
  },
  "hsl": {
    "h": 256.564,
    "s": 69.362,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44161,
    "c": 0.22663,
    "h": 284.9
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#5124C7
secondary
#B7D077
accent
#EC3CBB
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5124C7

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

Preview Lab → · Contrast checker → · Palette generator →

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