#5C2F95#5C2F95

#5C2F95 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.159 H 299.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5C2F95
RGBrgb(92, 47, 149)
HSLhsl(266, 52%, 38%)
HSVhsv(266, 68%, 58%)
CMYKcmyk(38.3%, 68.5%, 0%, 41.6%)
CIE-LABlab(30.59, 41.77, -48.51)
CIE-LCHlch(30.59, 64.01, 310.73°)
OKLaboklab(41.99% 0.079 -0.1382)
OKLCHoklch(41.99% 0.159 299.7)
XYZxyz(10.8536, 6.4782, 29.1065)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F95 #68952F
analogous
#2F3595 #5C2F95 #8F2F95
triadic
#5C2F95 #955C2F #2F955C
tetradic
#5C2F95 #952F35 #68952F #2F958F
square
#5C2F95 #952F35 #68952F #2F958F
split-complementary
#5C2F95 #958F2F #35952F
monochromatic
#231238 #3F2066 #5C2F95 #793FC2 #996DD1

Accessibility & contrast

On white

9.15
#5C2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5C2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F95
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F95#FFFFFF#000000##FFFFFF
##5C2F951.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#4F475E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2f95;
/* rgb */ color: rgb(92, 47, 149);
/* oklch */ color: oklch(42.0% 0.159 299.7);
Tailwind
colors: {
  custom: {
    50: '#8f6bb5',
    500: '#5c2f95',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f95;
$custom-light: #8f6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f95",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 266.471,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41992,
    "c": 0.15918,
    "h": 299.7
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#5C2F95
secondary
#95B867
accent
#DB4C9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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