#5124E3#5124E3

#5124E3 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.1% C 0.256 H 281.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5124E3
RGBrgb(81, 36, 227)
HSLhsl(254, 77%, 52%)
HSVhsv(254, 84%, 89%)
CMYKcmyk(64.3%, 84.1%, 0%, 11%)
CIE-LABlab(35.11, 66.20, -87.21)
CIE-LCHlch(35.11, 109.49, 307.20°)
OKLaboklab(47.1% 0.0487 -0.2516)
OKLCHoklch(47.1% 0.256 281)
XYZxyz(17.8850, 8.5557, 73.3671)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124E3 #B6E324
analogous
#2457E3 #5124E3 #B124E3
triadic
#5124E3 #E35124 #24E351
tetradic
#5124E3 #E32457 #B6E324 #24E3B1
square
#5124E3 #E32457 #B6E324 #24E3B1
split-complementary
#5124E3 #E3B124 #57E324
monochromatic
#2A107D #3C17B3 #5124E3 #7C5AEA #A791F1

Accessibility & contrast

On white

7.75
#5124E3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5124E3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5124E3
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124E3#FFFFFF#000000##FFFFFF
##5124E31.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E8
Deuteranopia (green-blind)
#004CE0
Tritanopia (blue-blind)
#006288
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5124e3;
/* rgb */ color: rgb(81, 36, 227);
/* oklch */ color: oklch(47.1% 0.256 281.0);
Tailwind
colors: {
  custom: {
    50: '#9568ed',
    500: '#5124e3',
    950: '#000000',
  },
}
SCSS
$custom: #5124e3;
$custom-light: #9568ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5124e3",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 227
  },
  "hsl": {
    "h": 254.136,
    "s": 77.328,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47102,
    "c": 0.25633,
    "h": 281
  },
  "luminance": 0.08557
}

Semantic roles & 50–950 ramp

primary
#5124E3
secondary
#C8DB87
accent
#F434C7
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5124E3

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

Preview Lab → · Contrast checker → · Palette generator →

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