#5F3EBD#5F3EBD

#5F3EBD is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.188 H 289.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5F3EBD
RGBrgb(95, 62, 189)
HSLhsl(256, 51%, 49%)
HSVhsv(256, 67%, 74%)
CMYKcmyk(49.7%, 67.2%, 0%, 25.9%)
CIE-LABlab(37.03, 45.34, -62.00)
CIE-LCHlch(37.03, 76.81, 306.18°)
OKLaboklab(47.68% 0.0618 -0.1778)
OKLCHoklch(47.68% 0.188 289.2)
XYZxyz(15.6246, 9.5516, 49.1546)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EBD #9CBD3E
analogous
#3E5CBD #5F3EBD #9F3EBD
triadic
#5F3EBD #BD5F3E #3EBD5F
tetradic
#5F3EBD #BD3E5C #9CBD3E #3EBD9F
square
#5F3EBD #BD3E5C #9CBD3E #3EBD9F
split-complementary
#5F3EBD #BD9F3E #5CBD3E
monochromatic
#312061 #482F8F #5F3EBD #846ACE #AA98DD

Accessibility & contrast

On white

7.22
#5F3EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F3EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EBD
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EBD#FFFFFF#000000##FFFFFF
##5F3EBD1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#3F5E78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3ebd;
/* rgb */ color: rgb(95, 62, 189);
/* oklch */ color: oklch(47.7% 0.188 289.2);
Tailwind
colors: {
  custom: {
    50: '#9575d2',
    500: '#5f3ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ebd;
$custom-light: #9575d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ebd",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 189
  },
  "hsl": {
    "h": 255.591,
    "s": 50.598,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.18825,
    "h": 289.2
  },
  "luminance": 0.09552
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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