#5C38AF#5C38AF

#5C38AF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.179 H 291.5°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5C38AF
RGBrgb(92, 56, 175)
HSLhsl(258, 52%, 45%)
HSVhsv(258, 68%, 69%)
CMYKcmyk(47.4%, 68%, 0%, 31.4%)
CIE-LABlab(34.39, 44.08, -58.03)
CIE-LCHlch(34.39, 72.87, 307.22°)
OKLaboklab(45.36% 0.0656 -0.1662)
OKLCHoklch(45.36% 0.179 291.5)
XYZxyz(13.5635, 8.1983, 41.4169)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38AF #8BAF38
analogous
#3850AF #5C38AF #9738AF
triadic
#5C38AF #AF5C38 #38AF5C
tetradic
#5C38AF #AF3850 #8BAF38 #38AF97
square
#5C38AF #AF3850 #8BAF38 #38AF97
split-complementary
#5C38AF #AF9738 #50AF38
monochromatic
#2B1A52 #442981 #5C38AF #7C5ACA #A188D9

Accessibility & contrast

On white

7.96
#5C38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5C38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38AF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38AF#FFFFFF#000000##FFFFFF
##5C38AF1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#42556F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c38af;
/* rgb */ color: rgb(92, 56, 175);
/* oklch */ color: oklch(45.4% 0.179 291.5);
Tailwind
colors: {
  custom: {
    50: '#9171c8',
    500: '#5c38af',
    950: '#000000',
  },
}
SCSS
$custom: #5c38af;
$custom-light: #9171c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38af",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 258.151,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45362,
    "c": 0.17869,
    "h": 291.5
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#5C38AF
secondary
#AFC380
accent
#DB4DB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5C38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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