#5F3CBC#5F3CBC

#5F3CBC is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.3% C 0.189 H 289.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5F3CBC
RGBrgb(95, 60, 188)
HSLhsl(256, 52%, 49%)
HSVhsv(256, 68%, 74%)
CMYKcmyk(49.5%, 68.1%, 0%, 26.3%)
CIE-LABlab(36.55, 46.15, -62.20)
CIE-LCHlch(36.55, 77.45, 306.57°)
OKLaboklab(47.31% 0.0639 -0.1784)
OKLCHoklch(47.31% 0.189 289.7)
XYZxyz(15.4097, 9.2948, 48.5493)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CBC #99BC3C
analogous
#3C59BC #5F3CBC #9F3CBC
triadic
#5F3CBC #BC5F3C #3CBC5F
tetradic
#5F3CBC #BC3C59 #99BC3C #3CBC9F
square
#5F3CBC #BC3C59 #99BC3C #3CBC9F
split-complementary
#5F3CBC #BC9F3C #59BC3C
monochromatic
#301E5F #482D8E #5F3CBC #8367CE #A995DD

Accessibility & contrast

On white

7.35
#5F3CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5F3CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CBC
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CBC#FFFFFF#000000##FFFFFF
##5F3CBC1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#3F5C77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3cbc;
/* rgb */ color: rgb(95, 60, 188);
/* oklch */ color: oklch(47.3% 0.189 289.7);
Tailwind
colors: {
  custom: {
    50: '#9574d1',
    500: '#5f3cbc',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cbc;
$custom-light: #9574d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cbc",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 188
  },
  "hsl": {
    "h": 256.406,
    "s": 51.613,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47307,
    "c": 0.18948,
    "h": 289.7
  },
  "luminance": 0.09295
}

Semantic roles & 50–950 ramp

primary
#5F3CBC
secondary
#B8C98B
accent
#DB4DB4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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