#5C2F99#5C2F99

#5C2F99 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.164 H 298.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5C2F99
RGBrgb(92, 47, 153)
HSLhsl(265, 53%, 39%)
HSVhsv(265, 69%, 60%)
CMYKcmyk(39.9%, 69.3%, 0%, 40%)
CIE-LABlab(30.90, 42.83, -50.46)
CIE-LCHlch(30.90, 66.18, 310.33°)
OKLaboklab(42.31% 0.0784 -0.1439)
OKLCHoklch(42.31% 0.164 298.6)
XYZxyz(11.1785, 6.6081, 30.8174)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F99 #6C992F
analogous
#2F3799 #5C2F99 #912F99
triadic
#5C2F99 #995C2F #2F995C
tetradic
#5C2F99 #992F37 #6C992F #2F9991
square
#5C2F99 #992F37 #6C992F #2F9991
split-complementary
#5C2F99 #99912F #37992F
monochromatic
#24123B #40216A #5C2F99 #7941C5 #9A6FD3

Accessibility & contrast

On white

9.05
#5C2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5C2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F99
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F99#FFFFFF#000000##FFFFFF
##5C2F991.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#4E4860
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2f99;
/* rgb */ color: rgb(92, 47, 153);
/* oklch */ color: oklch(42.3% 0.164 298.6);
Tailwind
colors: {
  custom: {
    50: '#8f6bb8',
    500: '#5c2f99',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f99;
$custom-light: #8f6bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f99",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 265.472,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42311,
    "c": 0.16388,
    "h": 298.6
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#5C2F99
secondary
#98BA69
accent
#DC4B9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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