#5C2F9C#5C2F9C

#5C2F9C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.167 H 297.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5C2F9C
RGBrgb(92, 47, 156)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 70%, 61%)
CMYKcmyk(41%, 69.9%, 0%, 38.8%)
CIE-LABlab(31.13, 43.63, -51.90)
CIE-LCHlch(31.13, 67.80, 310.05°)
OKLaboklab(42.55% 0.0779 -0.1482)
OKLCHoklch(42.55% 0.167 297.7)
XYZxyz(11.4294, 6.7085, 32.1387)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F9C #6F9C2F
analogous
#2F389C #5C2F9C #932F9C
triadic
#5C2F9C #9C5C2F #2F9C5C
tetradic
#5C2F9C #9C2F38 #6F9C2F #2F9C93
square
#5C2F9C #9C2F38 #6F9C2F #2F9C93
split-complementary
#5C2F9C #9C932F #389C2F
monochromatic
#25133E #40216D #5C2F9C #7942C6 #9A71D4

Accessibility & contrast

On white

8.97
#5C2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5C2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F9C
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F9C#FFFFFF#000000##FFFFFF
##5C2F9C1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#4C4962
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2f9c;
/* rgb */ color: rgb(92, 47, 156);
/* oklch */ color: oklch(42.6% 0.167 297.7);
Tailwind
colors: {
  custom: {
    50: '#906bba',
    500: '#5c2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f9c;
$custom-light: #906bba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f9c",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 264.771,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42554,
    "c": 0.16741,
    "h": 297.7
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#5C2F9C
secondary
#9ABC6B
accent
#DD4BA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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