#5A24FF#5A24FF

#5A24FF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.8% C 0.284 H 280.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5A24FF
RGBrgb(90, 36, 255)
HSLhsl(255, 100%, 57%)
HSVhsv(255, 86%, 100%)
CMYKcmyk(64.7%, 85.9%, 0%, 0%)
CIE-LABlab(38.99, 74.06, -96.59)
CIE-LCHlch(38.99, 121.72, 307.48°)
OKLaboklab(50.83% 0.0522 -0.2787)
OKLCHoklch(50.83% 0.284 280.6)
XYZxyz(22.8916, 10.6536, 95.4384)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24FF #C9FF24
analogous
#245BFF #5A24FF #C824FF
triadic
#5A24FF #FF5A24 #24FF5A
tetradic
#5A24FF #FF245B #C9FF24 #24FFC8
square
#5A24FF #FF245B #C9FF24 #24FFC8
split-complementary
#5A24FF #FFC824 #5BFF24
monochromatic
#2A00A9 #3900E6 #5A24FF #8861FF #B69EFF

Accessibility & contrast

On white

6.71
#5A24FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5A24FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A24FF
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24FF#FFFFFF#000000##FFFFFF
##5A24FF1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063FF
Deuteranopia (green-blind)
#0054FB
Tritanopia (blue-blind)
#006E99
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a24ff;
/* rgb */ color: rgb(90, 36, 255);
/* oklch */ color: oklch(50.8% 0.284 280.6);
Tailwind
colors: {
  custom: {
    50: '#9e6bff',
    500: '#5a24ff',
    950: '#000000',
  },
}
SCSS
$custom: #5a24ff;
$custom-light: #9e6bff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24ff",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 255
  },
  "hsl": {
    "h": 254.795,
    "s": 100,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50829,
    "c": 0.28355,
    "h": 280.6
  },
  "luminance": 0.10655
}

Semantic roles & 50–950 ramp

primary
#5A24FF
secondary
#D6EC93
accent
#FF29CA
background
#FAF6FF
surface
#F4ECFF
border
#CEC7D7
text
#110718
muted
#807A86

Preview Lab

Preview with #5A24FF

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

Preview Lab → · Contrast checker → · Palette generator →

#5A24FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva