#5C508F#5C508F

#5C508F is a mid, moderate violet. Relative luminance 0.100; OKLCH L 47.2% C 0.100 H 290.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5C508F
RGBrgb(92, 80, 143)
HSLhsl(251, 28%, 44%)
HSVhsv(251, 44%, 56%)
CMYKcmyk(35.7%, 44.1%, 0%, 43.9%)
CIE-LABlab(37.83, 20.44, -33.24)
CIE-LCHlch(37.83, 39.03, 301.59°)
OKLaboklab(47.22% 0.0355 -0.0934)
OKLCHoklch(47.22% 0.1 290.8)
XYZxyz(12.2389, 9.9955, 27.2658)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C508F #838F50
analogous
#50638F #5C508F #7B508F
triadic
#5C508F #8F5C50 #508F5C
tetradic
#5C508F #8F5063 #838F50 #508F7B
square
#5C508F #8F5063 #838F50 #508F7B
split-complementary
#5C508F #8F7B50 #638F50
monochromatic
#2A2441 #433A68 #5C508F #7A6EAE #9E95C4

Accessibility & contrast

On white

7.00
#5C508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5C508F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C508F
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C508F#FFFFFF#000000##FFFFFF
##5C508F1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A91
Deuteranopia (green-blind)
#3C588D
Tritanopia (blue-blind)
#4F5C68
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5c508f;
/* rgb */ color: rgb(92, 80, 143);
/* oklch */ color: oklch(47.2% 0.100 290.8);
Tailwind
colors: {
  custom: {
    50: '#8c81b0',
    500: '#5c508f',
    950: '#000000',
  },
}
SCSS
$custom: #5c508f;
$custom-light: #8c81b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c508f",
  "rgb": {
    "r": 92,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 251.429,
    "s": 28.251,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47221,
    "c": 0.09997,
    "h": 290.8
  },
  "luminance": 0.09996
}

Semantic roles & 50–950 ramp

primary
#5C508F
secondary
#A9B18A
accent
#C563B2
background
#F8F7FA
surface
#F0EEF5
border
#CBC9CF
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5C508F

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

Preview Lab → · Contrast checker → · Palette generator →

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