#5C247E#5C247E

#5C247E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.148 H 309.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5C247E
RGBrgb(92, 36, 126)
HSLhsl(277, 56%, 32%)
HSVhsv(277, 71%, 49%)
CMYKcmyk(27%, 71.4%, 0%, 50.6%)
CIE-LABlab(26.86, 41.54, -40.26)
CIE-LCHlch(26.86, 57.85, 315.90°)
OKLaboklab(38.78% 0.0945 -0.1139)
OKLCHoklch(38.78% 0.148 309.7)
XYZxyz(8.8097, 5.0436, 20.2440)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C247E #467E24
analogous
#2F247E #5C247E #7E2473
triadic
#5C247E #7E5C24 #247E5C
tetradic
#5C247E #7E2F24 #467E24 #24737E
square
#5C247E #7E2F24 #467E24 #24737E
split-complementary
#5C247E #737E24 #247E2F
monochromatic
#16091F #39164E #5C247E #7F32AE #9E50CD

Accessibility & contrast

On white

10.46
#5C247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C247E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C247E#FFFFFF#000000##FFFFFF
##5C247E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#14407C
Tritanopia (blue-blind)
#57374E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c247e;
/* rgb */ color: rgb(92, 36, 126);
/* oklch */ color: oklch(38.8% 0.148 309.7);
Tailwind
colors: {
  custom: {
    50: '#8e64a4',
    500: '#5c247e',
    950: '#000000',
  },
}
SCSS
$custom: #5c247e;
$custom-light: #8e64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c247e",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 277.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38777,
    "c": 0.148,
    "h": 309.7
  },
  "luminance": 0.05043
}

Semantic roles & 50–950 ramp

primary
#5C247E
secondary
#73B04E
accent
#DF4982
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5C247E

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

Preview Lab → · Contrast checker → · Palette generator →

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