#5C308F#5C308F

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

Color values

HEX#5C308F
RGBrgb(92, 48, 143)
HSLhsl(268, 50%, 37%)
HSVhsv(268, 66%, 56%)
CMYKcmyk(35.7%, 66.4%, 0%, 43.9%)
CIE-LABlab(30.33, 39.65, -45.24)
CIE-LCHlch(30.33, 60.15, 311.23°)
OKLaboklab(41.67% 0.0785 -0.1286)
OKLCHoklch(41.67% 0.151 301.4)
XYZxyz(10.4273, 6.3723, 26.6619)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C308F #638F30
analogous
#30348F #5C308F #8B308F
triadic
#5C308F #8F5C30 #308F5C
tetradic
#5C308F #8F3034 #638F30 #308F8B
square
#5C308F #8F3034 #638F30 #308F8B
split-complementary
#5C308F #8F8B30 #348F30
monochromatic
#211133 #3F2161 #5C308F #793FBD #996CCE

Accessibility & contrast

On white

9.23
#5C308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C308F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C308F#FFFFFF#000000##FFFFFF
##5C308F1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#07478D
Tritanopia (blue-blind)
#51455B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c308f;
/* rgb */ color: rgb(92, 48, 143);
/* oklch */ color: oklch(41.7% 0.151 301.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bb0',
    500: '#5c308f',
    950: '#000000',
  },
}
SCSS
$custom: #5c308f;
$custom-light: #8e6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c308f",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 267.789,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.15065,
    "h": 301.4
  },
  "luminance": 0.06372
}

Semantic roles & 50–950 ramp

primary
#5C308F
secondary
#90B566
accent
#D94F99
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C308F

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

Preview Lab → · Contrast checker → · Palette generator →

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