#5C247F#5C247F

#5C247F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.149 H 309.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5C247F
RGBrgb(92, 36, 127)
HSLhsl(277, 56%, 32%)
HSVhsv(277, 72%, 50%)
CMYKcmyk(27.6%, 71.7%, 0%, 50.2%)
CIE-LABlab(26.93, 41.78, -40.77)
CIE-LCHlch(26.93, 58.38, 315.70°)
OKLaboklab(38.85% 0.0944 -0.1154)
OKLCHoklch(38.85% 0.149 309.3)
XYZxyz(8.8745, 5.0695, 20.5856)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C247F #477F24
analogous
#2F247F #5C247F #7F2475
triadic
#5C247F #7F5C24 #247F5C
tetradic
#5C247F #7F2F24 #477F24 #24757F
square
#5C247F #7F2F24 #477F24 #24757F
split-complementary
#5C247F #757F24 #247F2F
monochromatic
#170920 #39164F #5C247F #7F32AF #9D50CD

Accessibility & contrast

On white

10.43
#5C247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5C247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C247F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C247F#FFFFFF#000000##FFFFFF
##5C247F1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#12407D
Tritanopia (blue-blind)
#57384F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c247f;
/* rgb */ color: rgb(92, 36, 127);
/* oklch */ color: oklch(38.9% 0.149 309.3);
Tailwind
colors: {
  custom: {
    50: '#8e64a5',
    500: '#5c247f',
    950: '#000000',
  },
}
SCSS
$custom: #5c247f;
$custom-light: #8e64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c247f",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 276.923,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38852,
    "c": 0.14908,
    "h": 309.3
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#5C247F
secondary
#74B14E
accent
#DF4983
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5C247F

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

Preview Lab → · Contrast checker → · Palette generator →

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