#5F2FB5#5F2FB5

#5F2FB5 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.196 H 293.2°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB5
RGBrgb(95, 47, 181)
HSLhsl(261, 59%, 45%)
HSVhsv(261, 74%, 71%)
CMYKcmyk(47.5%, 74%, 0%, 29%)
CIE-LABlab(33.57, 50.87, -62.93)
CIE-LCHlch(33.57, 80.92, 308.95°)
OKLaboklab(45.01% 0.0772 -0.1805)
OKLCHoklch(45.01% 0.196 293.2)
XYZxyz(14.0740, 7.8017, 44.4714)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB5 #85B52F
analogous
#2F42B5 #5F2FB5 #A22FB5
triadic
#5F2FB5 #B55F2F #2FB55F
tetradic
#5F2FB5 #B52F42 #85B52F #2FB5A2
square
#5F2FB5 #B52F42 #85B52F #2FB5A2
split-complementary
#5F2FB5 #B5A22F #42B52F
monochromatic
#2C1654 #462284 #5F2FB5 #7E50D1 #A280DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F2FB5#FFFFFF#000000##FFFFFF
##5F2FB51.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)
#0051B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#455370
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2fb5;
/* rgb */ color: rgb(95, 47, 181);
/* oklch */ color: oklch(45.0% 0.196 293.2);
Tailwind
colors: {
  custom: {
    50: '#956ccc',
    500: '#5f2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb5;
$custom-light: #956ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb5",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 261.493,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45006,
    "c": 0.1963,
    "h": 293.2
  },
  "luminance": 0.07802
}

Semantic roles & 50–950 ramp

primary
#5F2FB5
secondary
#ABC779
accent
#E246AA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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