#5C30BA#5C30BA

#5C30BA is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.201 H 290.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5C30BA
RGBrgb(92, 48, 186)
HSLhsl(259, 59%, 46%)
HSVhsv(259, 74%, 73%)
CMYKcmyk(50.5%, 74.2%, 0%, 27.1%)
CIE-LABlab(33.84, 51.28, -65.45)
CIE-LCHlch(33.84, 83.14, 308.08°)
OKLaboklab(45.26% 0.0707 -0.188)
OKLCHoklch(45.26% 0.201 290.6)
XYZxyz(14.3310, 7.9338, 47.2211)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C30BA #8EBA30
analogous
#3049BA #5C30BA #A130BA
triadic
#5C30BA #BA5C30 #30BA5C
tetradic
#5C30BA #BA3049 #8EBA30 #30BAA1
square
#5C30BA #BA3049 #8EBA30 #30BAA1
split-complementary
#5C30BA #BAA130 #49BA30
monochromatic
#2C1759 #442389 #5C30BA #7D54D3 #A285DF

Accessibility & contrast

On white

8.12
#5C30BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5C30BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C30BA
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C30BA#FFFFFF#000000##FFFFFF
##5C30BA1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#3B5573
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c30ba;
/* rgb */ color: rgb(92, 48, 186);
/* oklch */ color: oklch(45.3% 0.201 290.6);
Tailwind
colors: {
  custom: {
    50: '#936dd0',
    500: '#5c30ba',
    950: '#000000',
  },
}
SCSS
$custom: #5c30ba;
$custom-light: #936dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c30ba",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 259.13,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45261,
    "c": 0.20083,
    "h": 290.6
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#5C30BA
secondary
#B1C97D
accent
#E246B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C30BA

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

Preview Lab → · Contrast checker → · Palette generator →

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