#5F2BC2#5F2BC2

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

Color values

HEX#5F2BC2
RGBrgb(95, 43, 194)
HSLhsl(261, 64%, 46%)
HSVhsv(261, 78%, 76%)
CMYKcmyk(51%, 77.8%, 0%, 23.9%)
CIE-LABlab(34.10, 56.16, -69.73)
CIE-LCHlch(34.10, 89.53, 308.85°)
OKLaboklab(45.74% 0.0769 -0.2004)
OKLCHoklch(45.74% 0.215 291)
XYZxyz(15.3180, 8.0551, 51.7761)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BC2 #8EC22B
analogous
#2B43C2 #5F2BC2 #AB2BC2
triadic
#5F2BC2 #C25F2B #2BC25F
tetradic
#5F2BC2 #C22B43 #8EC22B #2BC2AB
square
#5F2BC2 #C22B43 #8EC22B #2BC2AB
split-complementary
#5F2BC2 #C2AB2B #43C22B
monochromatic
#2E155E #462090 #5F2BC2 #8052D9 #A584E4

Accessibility & contrast

On white

8.04
#5F2BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F2BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BC2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BC2#FFFFFF#000000##FFFFFF
##5F2BC21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#3C5676
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2bc2;
/* rgb */ color: rgb(95, 43, 194);
/* oklch */ color: oklch(45.7% 0.215 291.0);
Tailwind
colors: {
  custom: {
    50: '#976bd6',
    500: '#5f2bc2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bc2;
$custom-light: #976bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bc2",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 260.662,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45736,
    "c": 0.21462,
    "h": 291
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#5F2BC2
secondary
#B1CD7C
accent
#E741AE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #5F2BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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