#5F2EB7#5F2EB7

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

Color values

HEX#5F2EB7
RGBrgb(95, 46, 183)
HSLhsl(261, 60%, 45%)
HSVhsv(261, 75%, 72%)
CMYKcmyk(48.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(33.57, 51.88, -64.10)
CIE-LCHlch(33.57, 82.47, 308.99°)
OKLaboklab(45.07% 0.0776 -0.1839)
OKLCHoklch(45.07% 0.2 292.9)
XYZxyz(14.2412, 7.8053, 45.5468)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EB7 #86B72E
analogous
#2E41B7 #5F2EB7 #A42EB7
triadic
#5F2EB7 #B75F2E #2EB75F
tetradic
#5F2EB7 #B72E41 #86B72E #2EB7A4
square
#5F2EB7 #B72E41 #86B72E #2EB7A4
split-complementary
#5F2EB7 #B7A42E #41B72E
monochromatic
#2C1555 #462286 #5F2EB7 #7E4FD3 #A280DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F2EB7#FFFFFF#000000##FFFFFF
##5F2EB71.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)
#0051BB
Deuteranopia (green-blind)
#004CB4
Tritanopia (blue-blind)
#435370
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2eb7;
/* rgb */ color: rgb(95, 46, 183);
/* oklch */ color: oklch(45.1% 0.200 292.9);
Tailwind
colors: {
  custom: {
    50: '#956cce',
    500: '#5f2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eb7;
$custom-light: #956cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eb7",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 261.46,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45065,
    "c": 0.1996,
    "h": 292.9
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#5F2EB7
secondary
#ACC879
accent
#E345AA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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