#5124FF#5124FF

#5124FF is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 50.1% C 0.285 H 277.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5124FF
RGBrgb(81, 36, 255)
HSLhsl(252, 100%, 57%)
HSVhsv(252, 86%, 100%)
CMYKcmyk(68.2%, 85.9%, 0%, 0%)
CIE-LABlab(38.25, 73.47, -97.84)
CIE-LCHlch(38.25, 122.36, 306.90°)
OKLaboklab(50.14% 0.0393 -0.2825)
OKLCHoklch(50.14% 0.285 277.9)
XYZxyz(22.0684, 10.2291, 95.3998)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5124FF #D2FF24
analogous
#2464FF #5124FF #BF24FF
triadic
#5124FF #FF5124 #24FF51
tetradic
#5124FF #FF2464 #D2FF24 #24FFBF
square
#5124FF #FF2464 #D2FF24 #24FFBF
split-complementary
#5124FF #FFBF24 #64FF24
monochromatic
#2300A9 #2F00E6 #5124FF #8261FF #B29EFF

Accessibility & contrast

On white

6.89
#5124FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5124FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5124FF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5124FF#FFFFFF#000000##FFFFFF
##5124FF1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062FF
Deuteranopia (green-blind)
#0051FB
Tritanopia (blue-blind)
#006F99
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5124ff;
/* rgb */ color: rgb(81, 36, 255);
/* oklch */ color: oklch(50.1% 0.285 277.9);
Tailwind
colors: {
  custom: {
    50: '#9a6bff',
    500: '#5124ff',
    950: '#000000',
  },
}
SCSS
$custom: #5124ff;
$custom-light: #9a6bff;
$custom-dark: #000000;
JSON
{
  "hex": "#5124ff",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 255
  },
  "hsl": {
    "h": 252.329,
    "s": 100,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50142,
    "c": 0.28522,
    "h": 277.9
  },
  "luminance": 0.10231
}

Semantic roles & 50–950 ramp

primary
#5124FF
secondary
#DAEC93
accent
#FF29D3
background
#FAF6FF
surface
#F4ECFF
border
#CEC7D7
text
#100718
muted
#7F7A86

Preview Lab

Preview with #5124FF

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

Preview Lab → · Contrast checker → · Palette generator →

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