#5C2FBC#5C2FBC

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

Color values

HEX#5C2FBC
RGBrgb(92, 47, 188)
HSLhsl(259, 60%, 46%)
HSVhsv(259, 75%, 74%)
CMYKcmyk(51.1%, 75%, 0%, 26.3%)
CIE-LABlab(33.85, 52.30, -66.61)
CIE-LCHlch(33.85, 84.69, 308.14°)
OKLaboklab(45.32% 0.0711 -0.1914)
OKLCHoklch(45.32% 0.204 290.4)
XYZxyz(14.5046, 7.9386, 48.3352)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FBC #8FBC2F
analogous
#2F48BC #5C2FBC #A22FBC
triadic
#5C2FBC #BC5C2F #2FBC5C
tetradic
#5C2FBC #BC2F48 #8FBC2F #2FBCA2
square
#5C2FBC #BC2F48 #8FBC2F #2FBCA2
split-complementary
#5C2FBC #BCA22F #48BC2F
monochromatic
#2C175A #44238B #5C2FBC #7D54D4 #A285E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C2FBC#FFFFFF#000000##FFFFFF
##5C2FBC1.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)
#0052C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#3A5673
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c2fbc;
/* rgb */ color: rgb(92, 47, 188);
/* oklch */ color: oklch(45.3% 0.204 290.4);
Tailwind
colors: {
  custom: {
    50: '#946cd1',
    500: '#5c2fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fbc;
$custom-light: #946cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fbc",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 259.149,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45322,
    "c": 0.20412,
    "h": 290.4
  },
  "luminance": 0.07939
}

Semantic roles & 50–950 ramp

primary
#5C2FBC
secondary
#B1CA7D
accent
#E345B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5C2FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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