#5F3EBE#5F3EBE

#5F3EBE is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.8% C 0.189 H 289.0°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5F3EBE
RGBrgb(95, 62, 190)
HSLhsl(255, 51%, 49%)
HSVhsv(255, 67%, 75%)
CMYKcmyk(50%, 67.4%, 0%, 25.5%)
CIE-LABlab(37.11, 45.63, -62.46)
CIE-LCHlch(37.11, 77.35, 306.15°)
OKLaboklab(47.76% 0.0617 -0.1791)
OKLCHoklch(47.76% 0.189 289)
XYZxyz(15.7335, 9.5952, 49.7283)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EBE #9DBE3E
analogous
#3E5DBE #5F3EBE #9F3EBE
triadic
#5F3EBE #BE5F3E #3EBE5F
tetradic
#5F3EBE #BE3E5D #9DBE3E #3EBE9F
square
#5F3EBE #BE3E5D #9DBE3E #3EBE9F
split-complementary
#5F3EBE #BE9F3E #5DBE3E
monochromatic
#312062 #482F90 #5F3EBE #846BCF #AB99DE

Accessibility & contrast

On white

7.19
#5F3EBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5F3EBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EBE
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EBE#FFFFFF#000000##FFFFFF
##5F3EBE1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#3E5E79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3ebe;
/* rgb */ color: rgb(95, 62, 190);
/* oklch */ color: oklch(47.8% 0.189 289.0);
Tailwind
colors: {
  custom: {
    50: '#9576d3',
    500: '#5f3ebe',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ebe;
$custom-light: #9576d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ebe",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 190
  },
  "hsl": {
    "h": 255.469,
    "s": 50.794,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47759,
    "c": 0.18947,
    "h": 289
  },
  "luminance": 0.09596
}

Semantic roles & 50–950 ramp

primary
#5F3EBE
secondary
#BAC98E
accent
#DA4EB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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