#5C2FC1#5C2FC1

#5C2FC1 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.210 H 289.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5C2FC1
RGBrgb(92, 47, 193)
HSLhsl(258, 61%, 47%)
HSVhsv(258, 76%, 76%)
CMYKcmyk(52.3%, 75.6%, 0%, 24.3%)
CIE-LABlab(34.31, 53.67, -68.81)
CIE-LCHlch(34.31, 87.26, 307.95°)
OKLaboklab(45.78% 0.0697 -0.1978)
OKLCHoklch(45.78% 0.21 289.4)
XYZxyz(15.0530, 8.1579, 51.2232)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2FC1 #94C12F
analogous
#2F4BC1 #5C2FC1 #A52FC1
triadic
#5C2FC1 #C15C2F #2FC15C
tetradic
#5C2FC1 #C12F4B #94C12F #2FC1A5
square
#5C2FC1 #C12F4B #94C12F #2FC1A5
split-complementary
#5C2FC1 #C1A52F #4BC12F
monochromatic
#2D175F #452390 #5C2FC1 #7E57D6 #A488E2

Accessibility & contrast

On white

7.98
#5C2FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5C2FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2FC1
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2FC1#FFFFFF#000000##FFFFFF
##5C2FC11.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C5
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#365876
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c2fc1;
/* rgb */ color: rgb(92, 47, 193);
/* oklch */ color: oklch(45.8% 0.210 289.4);
Tailwind
colors: {
  custom: {
    50: '#946dd5',
    500: '#5c2fc1',
    950: '#000000',
  },
}
SCSS
$custom: #5c2fc1;
$custom-light: #946dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2fc1",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 258.493,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45781,
    "c": 0.20972,
    "h": 289.4
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#5C2FC1
secondary
#B4CC80
accent
#E444B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5C2FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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