#5C2FB8#5C2FB8

#5C2FB8 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.200 H 291.2°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5C2FB8
RGBrgb(92, 47, 184)
HSLhsl(260, 59%, 45%)
HSVhsv(260, 74%, 72%)
CMYKcmyk(50%, 74.5%, 0%, 27.8%)
CIE-LABlab(33.50, 51.21, -64.84)
CIE-LCHlch(33.50, 82.62, 308.30°)
OKLaboklab(44.96% 0.0721 -0.1862)
OKLCHoklch(44.96% 0.2 291.2)
XYZxyz(14.0794, 7.7685, 46.0957)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FB8 #8BB82F
analogous
#2F47B8 #5C2FB8 #A02FB8
triadic
#5C2FB8 #B85C2F #2FB85C
tetradic
#5C2FB8 #B82F47 #8BB82F #2FB8A0
square
#5C2FB8 #B82F47 #8BB82F #2FB8A0
split-complementary
#5C2FB8 #B8A02F #47B82F
monochromatic
#2B1657 #442387 #5C2FB8 #7C52D3 #A182DF

Accessibility & contrast

On white

8.22
#5C2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5C2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FB8
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FB8#FFFFFF#000000##FFFFFF
##5C2FB81.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004CB5
Tritanopia (blue-blind)
#3D5471
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5c2fb8;
/* rgb */ color: rgb(92, 47, 184);
/* oklch */ color: oklch(45.0% 0.200 291.2);
Tailwind
colors: {
  custom: {
    50: '#936cce',
    500: '#5c2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fb8;
$custom-light: #936cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fb8",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 259.708,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4496,
    "c": 0.19962,
    "h": 291.2
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#5C2FB8
secondary
#AFC87B
accent
#E245AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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