#5C279D#5C279D

#5C279D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.178 H 298.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#5C279D
RGBrgb(92, 39, 157)
HSLhsl(267, 60%, 38%)
HSVhsv(267, 75%, 62%)
CMYKcmyk(41.4%, 75.2%, 0%, 38.4%)
CIE-LABlab(29.81, 47.83, -54.66)
CIE-LCHlch(29.81, 72.63, 311.19°)
OKLaboklab(41.64% 0.0857 -0.1562)
OKLCHoklch(41.64% 0.178 298.7)
XYZxyz(11.2234, 6.1605, 32.4895)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C279D #689D27
analogous
#272D9D #5C279D #97279D
triadic
#5C279D #9D5C27 #279D5C
tetradic
#5C279D #9D272D #689D27 #279D97
square
#5C279D #9D272D #689D27 #279D97
split-complementary
#5C279D #9D9727 #2D9D27
monochromatic
#230F3B #3F1B6C #5C279D #7935CD #9966D9

Accessibility & contrast

On white

9.41
#5C279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5C279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C279D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C279D#FFFFFF#000000##FFFFFF
##5C279D1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#4C4560
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c279d;
/* rgb */ color: rgb(92, 39, 157);
/* oklch */ color: oklch(41.6% 0.178 298.7);
Tailwind
colors: {
  custom: {
    50: '#9067bb',
    500: '#5c279d',
    950: '#000000',
  },
}
SCSS
$custom: #5c279d;
$custom-light: #9067bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c279d",
  "rgb": {
    "r": 92,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 266.949,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41643,
    "c": 0.17819,
    "h": 298.7
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

primary
#5C279D
secondary
#95BF61
accent
#E3449C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C279D

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

Preview Lab → · Contrast checker → · Palette generator →

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