#5C2FB9#5C2FB9

#5C2FB9 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.201 H 291.0°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5C2FB9
RGBrgb(92, 47, 185)
HSLhsl(260, 59%, 45%)
HSVhsv(260, 75%, 73%)
CMYKcmyk(50.3%, 74.6%, 0%, 27.5%)
CIE-LABlab(33.59, 51.48, -65.28)
CIE-LCHlch(33.59, 83.14, 308.26°)
OKLaboklab(45.05% 0.0718 -0.1875)
OKLCHoklch(45.05% 0.201 291)
XYZxyz(14.1846, 7.8106, 46.6497)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FB9 #8CB92F
analogous
#2F47B9 #5C2FB9 #A12FB9
triadic
#5C2FB9 #B95C2F #2FB95C
tetradic
#5C2FB9 #B92F47 #8CB92F #2FB9A1
square
#5C2FB9 #B92F47 #8CB92F #2FB9A1
split-complementary
#5C2FB9 #B9A12F #47B92F
monochromatic
#2B1657 #442388 #5C2FB9 #7C52D3 #A183DF

Accessibility & contrast

On white

8.20
#5C2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5C2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FB9
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FB9#FFFFFF#000000##FFFFFF
##5C2FB91.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#3C5472
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5c2fb9;
/* rgb */ color: rgb(92, 47, 185);
/* oklch */ color: oklch(45.1% 0.201 291.0);
Tailwind
colors: {
  custom: {
    50: '#936ccf',
    500: '#5c2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fb9;
$custom-light: #936ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fb9",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 259.565,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45051,
    "c": 0.20074,
    "h": 291
  },
  "luminance": 0.07811
}

Semantic roles & 50–950 ramp

primary
#5C2FB9
secondary
#AFC97B
accent
#E345AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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