#5C30A2#5C30A2

#5C30A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.173 H 296.0°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5C30A2
RGBrgb(92, 48, 162)
HSLhsl(263, 54%, 41%)
HSVhsv(263, 70%, 64%)
CMYKcmyk(43.2%, 70.4%, 0%, 36.5%)
CIE-LABlab(31.80, 44.73, -54.45)
CIE-LCHlch(31.80, 70.46, 309.40°)
OKLaboklab(43.18% 0.0759 -0.1557)
OKLCHoklch(43.18% 0.173 296)
XYZxyz(11.9904, 6.9976, 34.8943)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C30A2 #76A230
analogous
#303DA2 #5C30A2 #9530A2
triadic
#5C30A2 #A25C30 #30A25C
tetradic
#5C30A2 #A2303D #76A230 #30A295
square
#5C30A2 #A2303D #76A230 #30A295
split-complementary
#5C30A2 #A29530 #3DA230
monochromatic
#261444 #412273 #5C30A2 #7947C8 #9B76D6

Accessibility & contrast

On white

8.75
#5C30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5C30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C30A2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C30A2#FFFFFF#000000##FFFFFF
##5C30A21.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#494C65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c30a2;
/* rgb */ color: rgb(92, 48, 162);
/* oklch */ color: oklch(43.2% 0.173 296.0);
Tailwind
colors: {
  custom: {
    50: '#906cbe',
    500: '#5c30a2',
    950: '#000000',
  },
}
SCSS
$custom: #5c30a2;
$custom-light: #906cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c30a2",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 263.158,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43181,
    "c": 0.17317,
    "h": 296
  },
  "luminance": 0.06998
}

Semantic roles & 50–950 ramp

primary
#5C30A2
secondary
#A0BE6F
accent
#DE4AA5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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