#5C3095#5C3095

#5C3095 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.158 H 299.5°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5C3095
RGBrgb(92, 48, 149)
HSLhsl(266, 51%, 39%)
HSVhsv(266, 68%, 58%)
CMYKcmyk(38.3%, 67.8%, 0%, 41.6%)
CIE-LABlab(30.78, 41.23, -48.20)
CIE-LCHlch(30.78, 63.43, 310.55°)
OKLaboklab(42.13% 0.0778 -0.1373)
OKLCHoklch(42.13% 0.158 299.5)
XYZxyz(10.8941, 6.5590, 29.1200)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3095 #699530
analogous
#303695 #5C3095 #8E3095
triadic
#5C3095 #955C30 #30955C
tetradic
#5C3095 #953036 #699530 #30958E
square
#5C3095 #953036 #699530 #30958E
split-complementary
#5C3095 #958E30 #369530
monochromatic
#231238 #3F2167 #5C3095 #7941C2 #996FD1

Accessibility & contrast

On white

9.08
#5C3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5C3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3095
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3095#FFFFFF#000000##FFFFFF
##5C30951.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c3095;
/* rgb */ color: rgb(92, 48, 149);
/* oklch */ color: oklch(42.1% 0.158 299.5);
Tailwind
colors: {
  custom: {
    50: '#8f6bb5',
    500: '#5c3095',
    950: '#000000',
  },
}
SCSS
$custom: #5c3095;
$custom-light: #8f6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3095",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 266.139,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42131,
    "c": 0.15782,
    "h": 299.5
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#5C3095
secondary
#96B869
accent
#DB4D9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C3095

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

Preview Lab → · Contrast checker → · Palette generator →

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