#5B2FC1#5B2FC1

#5B2FC1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.210 H 289.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5B2FC1
RGBrgb(91, 47, 193)
HSLhsl(258, 61%, 47%)
HSVhsv(258, 76%, 76%)
CMYKcmyk(52.8%, 75.6%, 0%, 24.3%)
CIE-LABlab(34.20, 53.53, -68.98)
CIE-LCHlch(34.20, 87.32, 307.81°)
OKLaboklab(45.68% 0.0683 -0.1983)
OKLCHoklch(45.68% 0.21 289)
XYZxyz(14.9537, 8.1067, 51.2186)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FC1 #95C12F
analogous
#2F4CC1 #5B2FC1 #A42FC1
triadic
#5B2FC1 #C15B2F #2FC15B
tetradic
#5B2FC1 #C12F4C #95C12F #2FC1A4
square
#5B2FC1 #C12F4C #95C12F #2FC1A4
split-complementary
#5B2FC1 #C1A42F #4CC12F
monochromatic
#2D175F #442390 #5B2FC1 #7D57D6 #A388E2

Accessibility & contrast

On white

8.01
#5B2FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5B2FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FC1
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FC1#FFFFFF#000000##FFFFFF
##5B2FC11.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2fc1;
/* rgb */ color: rgb(91, 47, 193);
/* oklch */ color: oklch(45.7% 0.210 289.0);
Tailwind
colors: {
  custom: {
    50: '#946dd5',
    500: '#5b2fc1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fc1;
$custom-light: #946dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fc1",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 258.082,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45682,
    "c": 0.20975,
    "h": 289
  },
  "luminance": 0.08107
}

Semantic roles & 50–950 ramp

primary
#5B2FC1
secondary
#B5CC80
accent
#E444B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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