#5C2FB7#5C2FB7

#5C2FB7 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.198 H 291.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5C2FB7
RGBrgb(92, 47, 183)
HSLhsl(260, 59%, 45%)
HSVhsv(260, 74%, 72%)
CMYKcmyk(49.7%, 74.3%, 0%, 28.2%)
CIE-LABlab(33.41, 50.94, -64.39)
CIE-LCHlch(33.41, 82.10, 308.35°)
OKLaboklab(44.87% 0.0723 -0.1848)
OKLCHoklch(44.87% 0.198 291.4)
XYZxyz(13.9750, 7.7267, 45.5456)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FB7 #8AB72F
analogous
#2F46B7 #5C2FB7 #A02FB7
triadic
#5C2FB7 #B75C2F #2FB75C
tetradic
#5C2FB7 #B72F46 #8AB72F #2FB7A0
square
#5C2FB7 #B72F46 #8AB72F #2FB7A0
split-complementary
#5C2FB7 #B7A02F #46B72F
monochromatic
#2B1656 #442286 #5C2FB7 #7C51D2 #A082DF

Accessibility & contrast

On white

8.25
#5C2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2FB7
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FB7#FFFFFF#000000##FFFFFF
##5C2FB71.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004CB4
Tritanopia (blue-blind)
#3E5471
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5c2fb7;
/* rgb */ color: rgb(92, 47, 183);
/* oklch */ color: oklch(44.9% 0.198 291.4);
Tailwind
colors: {
  custom: {
    50: '#936cce',
    500: '#5c2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fb7;
$custom-light: #936cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fb7",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 259.853,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.19849,
    "h": 291.4
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#5C2FB7
secondary
#AEC87A
accent
#E245AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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