#5C2F9F#5C2F9F

#5C2F9F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.171 H 296.9°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5C2F9F
RGBrgb(92, 47, 159)
HSLhsl(264, 54%, 40%)
HSVhsv(264, 70%, 62%)
CMYKcmyk(42.1%, 70.4%, 0%, 37.6%)
CIE-LABlab(31.37, 44.43, -53.33)
CIE-LCHlch(31.37, 69.42, 309.80°)
OKLaboklab(42.8% 0.0774 -0.1524)
OKLCHoklch(42.8% 0.171 296.9)
XYZxyz(11.6865, 6.8113, 33.4932)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F9F #729F2F
analogous
#2F3A9F #5C2F9F #942F9F
triadic
#5C2F9F #9F5C2F #2F9F5C
tetradic
#5C2F9F #9F2F3A #729F2F #2F9F94
square
#5C2F9F #9F2F3A #729F2F #2F9F94
split-complementary
#5C2F9F #9F942F #3A9F2F
monochromatic
#251341 #412170 #5C2F9F #7944C8 #9B73D6

Accessibility & contrast

On white

8.89
#5C2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5C2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F9F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F9F#FFFFFF#000000##FFFFFF
##5C2F9F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#4B4A63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2f9f;
/* rgb */ color: rgb(92, 47, 159);
/* oklch */ color: oklch(42.8% 0.171 296.9);
Tailwind
colors: {
  custom: {
    50: '#906bbc',
    500: '#5c2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f9f;
$custom-light: #906bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f9f",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 264.107,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.428,
    "c": 0.17092,
    "h": 296.9
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#5C2F9F
secondary
#9DBD6D
accent
#DE4AA2
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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