#5C2EEE#5C2EEE

#5C2EEE is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 50.0% C 0.259 H 282.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5C2EEE
RGBrgb(92, 46, 238)
HSLhsl(254, 85%, 56%)
HSVhsv(254, 81%, 93%)
CMYKcmyk(61.3%, 80.7%, 0%, 6.7%)
CIE-LABlab(38.55, 66.26, -87.75)
CIE-LCHlch(38.55, 109.95, 307.06°)
OKLaboklab(50.04% 0.057 -0.2531)
OKLCHoklch(50.04% 0.259 282.7)
XYZxyz(20.8184, 10.4009, 81.7829)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EEE #C0EE2E
analogous
#2E60EE #5C2EEE #BC2EEE
triadic
#5C2EEE #EE5C2E #2EEE5C
tetradic
#5C2EEE #EE2E60 #C0EE2E #2EEEBC
square
#5C2EEE #EE2E60 #C0EE2E #2EEEBC
split-complementary
#5C2EEE #EEBC2E #60EE2E
monochromatic
#2D0C95 #3E11CE #5C2EEE #8867F3 #B49FF7

Accessibility & contrast

On white

6.82
#5C2EEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5C2EEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C2EEE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EEE#FFFFFF#000000##FFFFFF
##5C2EEE1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061F3
Deuteranopia (green-blind)
#0054EB
Tritanopia (blue-blind)
#006A90
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5c2eee;
/* rgb */ color: rgb(92, 46, 238);
/* oklch */ color: oklch(50.0% 0.259 282.7);
Tailwind
colors: {
  custom: {
    50: '#9c6ff5',
    500: '#5c2eee',
    950: '#000000',
  },
}
SCSS
$custom: #5c2eee;
$custom-light: #9c6ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2eee",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 238
  },
  "hsl": {
    "h": 254.375,
    "s": 84.956,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50043,
    "c": 0.25941,
    "h": 282.7
  },
  "luminance": 0.10402
}

Semantic roles & 50–950 ramp

primary
#5C2EEE
secondary
#D1E494
accent
#FB2DCA
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100817
muted
#7F7B85

Preview Lab

Preview with #5C2EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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