#5F3BBB#5F3BBB

#5F3BBB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.189 H 290.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5F3BBB
RGBrgb(95, 59, 187)
HSLhsl(257, 52%, 48%)
HSVhsv(257, 68%, 73%)
CMYKcmyk(49.2%, 68.4%, 0%, 26.7%)
CIE-LABlab(36.27, 46.40, -62.06)
CIE-LCHlch(36.27, 77.49, 306.79°)
OKLaboklab(47.08% 0.065 -0.178)
OKLCHoklch(47.08% 0.189 290.1)
XYZxyz(15.2504, 9.1481, 47.9663)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BBB #97BB3B
analogous
#3B57BB #5F3BBB #9F3BBB
triadic
#5F3BBB #BB5F3B #3BBB5F
tetradic
#5F3BBB #BB3B57 #97BB3B #3BBB9F
square
#5F3BBB #BB3B57 #97BB3B #3BBB9F
split-complementary
#5F3BBB #BB9F3B #57BB3B
monochromatic
#301E5E #472C8C #5F3BBB #8365CE #A893DD

Accessibility & contrast

On white

7.42
#5F3BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F3BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BBB
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BBB#FFFFFF#000000##FFFFFF
##5F3BBB1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#405B76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3bbb;
/* rgb */ color: rgb(95, 59, 187);
/* oklch */ color: oklch(47.1% 0.189 290.1);
Tailwind
colors: {
  custom: {
    50: '#9574d0',
    500: '#5f3bbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bbb;
$custom-light: #9574d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bbb",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 187
  },
  "hsl": {
    "h": 256.875,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47082,
    "c": 0.18948,
    "h": 290.1
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

primary
#5F3BBB
secondary
#B7C88A
accent
#DB4CB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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