#5C338E#5C338E

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

Color values

HEX#5C338E
RGBrgb(92, 51, 142)
HSLhsl(267, 47%, 38%)
HSVhsv(267, 64%, 56%)
CMYKcmyk(35.2%, 64.1%, 0%, 44.3%)
CIE-LABlab(30.87, 37.73, -43.76)
CIE-LCHlch(30.87, 57.78, 310.77°)
OKLaboklab(42.03% 0.0749 -0.1242)
OKLCHoklch(42.03% 0.145 301.1)
XYZxyz(10.4788, 6.5959, 26.3070)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C338E #658E33
analogous
#33378E #5C338E #89338E
triadic
#5C338E #8E5C33 #338E5C
tetradic
#5C338E #8E3337 #658E33 #338E89
square
#5C338E #8E3337 #658E33 #338E89
split-complementary
#5C338E #8E8933 #378E33
monochromatic
#221334 #3F2361 #5C338E #7943BB #9970CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C338E#FFFFFF#000000##FFFFFF
##5C338E1.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)
#004891
Deuteranopia (green-blind)
#12488C
Tritanopia (blue-blind)
#52475B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c338e;
/* rgb */ color: rgb(92, 51, 142);
/* oklch */ color: oklch(42.0% 0.145 301.1);
Tailwind
colors: {
  custom: {
    50: '#8e6db0',
    500: '#5c338e',
    950: '#000000',
  },
}
SCSS
$custom: #5c338e;
$custom-light: #8e6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c338e",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 267.033,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42031,
    "c": 0.14509,
    "h": 301.1
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#5C338E
secondary
#92B469
accent
#D7519B
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5C338E

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

Preview Lab → · Contrast checker → · Palette generator →

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