#5C2F91#5C2F91

#5C2F91 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.154 H 301.0°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5C2F91
RGBrgb(92, 47, 145)
HSLhsl(268, 51%, 38%)
HSVhsv(268, 68%, 57%)
CMYKcmyk(36.6%, 67.6%, 0%, 43.1%)
CIE-LABlab(30.29, 40.71, -46.55)
CIE-LCHlch(30.29, 61.84, 311.17°)
OKLaboklab(41.68% 0.0795 -0.1324)
OKLCHoklch(41.68% 0.154 301)
XYZxyz(10.5397, 6.3526, 27.4535)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F91 #64912F
analogous
#2F3391 #5C2F91 #8D2F91
triadic
#5C2F91 #915C2F #2F915C
tetradic
#5C2F91 #912F33 #64912F #2F918D
square
#5C2F91 #912F33 #64912F #2F918D
split-complementary
#5C2F91 #918D2F #33912F
monochromatic
#211135 #3F2063 #5C2F91 #793EBF #996BCF

Accessibility & contrast

On white

9.25
#5C2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F91
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F91#FFFFFF#000000##FFFFFF
##5C2F911.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#51455C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2f91;
/* rgb */ color: rgb(92, 47, 145);
/* oklch */ color: oklch(41.7% 0.154 301.0);
Tailwind
colors: {
  custom: {
    50: '#8f6bb2',
    500: '#5c2f91',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f91;
$custom-light: #8f6bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f91",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 267.551,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41679,
    "c": 0.15445,
    "h": 301
  },
  "luminance": 0.06353
}

Semantic roles & 50–950 ramp

primary
#5C2F91
secondary
#91B665
accent
#DB4D9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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