#5C217D#5C217D

#5C217D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.151 H 310.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5C217D
RGBrgb(92, 33, 125)
HSLhsl(278, 58%, 31%)
HSVhsv(278, 74%, 49%)
CMYKcmyk(26.4%, 73.6%, 0%, 51%)
CIE-LABlab(26.29, 42.71, -40.55)
CIE-LCHlch(26.29, 58.89, 316.49°)
OKLaboklab(38.35% 0.098 -0.1147)
OKLCHoklch(38.35% 0.151 310.5)
XYZxyz(8.6584, 4.8439, 19.8769)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C217D #427D21
analogous
#2E217D #5C217D #7D2170
triadic
#5C217D #7D5C21 #217D5C
tetradic
#5C217D #7D2E21 #427D21 #21707D
square
#5C217D #7D2E21 #427D21 #21707D
split-complementary
#5C217D #707D21 #217D2E
monochromatic
#15071C #38144D #5C217D #802EAD #9F49CF

Accessibility & contrast

On white

10.67
#5C217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5C217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C217D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C217D#FFFFFF#000000##FFFFFF
##5C217D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#113F7B
Tritanopia (blue-blind)
#58354D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c217d;
/* rgb */ color: rgb(92, 33, 125);
/* oklch */ color: oklch(38.3% 0.151 310.5);
Tailwind
colors: {
  custom: {
    50: '#8e62a3',
    500: '#5c217d',
    950: '#000000',
  },
}
SCSS
$custom: #5c217d;
$custom-light: #8e62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c217d",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 278.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38345,
    "c": 0.1509,
    "h": 310.5
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#5C217D
secondary
#6FB04A
accent
#E1467E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5C217D

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

Preview Lab → · Contrast checker → · Palette generator →

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