#5F3CBB#5F3CBB

#5F3CBB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.2% C 0.188 H 289.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5F3CBB
RGBrgb(95, 60, 187)
HSLhsl(257, 51%, 48%)
HSVhsv(257, 68%, 73%)
CMYKcmyk(49.2%, 67.9%, 0%, 26.7%)
CIE-LABlab(36.46, 45.86, -61.74)
CIE-LCHlch(36.46, 76.91, 306.61°)
OKLaboklab(47.22% 0.0641 -0.177)
OKLCHoklch(47.22% 0.188 289.9)
XYZxyz(15.3022, 9.2518, 47.9836)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CBB #98BB3C
analogous
#3C59BB #5F3CBB #9E3CBB
triadic
#5F3CBB #BB5F3C #3CBB5F
tetradic
#5F3CBB #BB3C59 #98BB3C #3CBB9E
square
#5F3CBB #BB3C59 #98BB3C #3CBB9E
split-complementary
#5F3CBB #BB9E3C #59BB3C
monochromatic
#301E5E #472D8D #5F3CBB #8366CE #A895DD

Accessibility & contrast

On white

7.37
#5F3CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5F3CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CBB
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CBB#FFFFFF#000000##FFFFFF
##5F3CBB1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#405C76
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3cbb;
/* rgb */ color: rgb(95, 60, 187);
/* oklch */ color: oklch(47.2% 0.188 289.9);
Tailwind
colors: {
  custom: {
    50: '#9474d0',
    500: '#5f3cbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cbb;
$custom-light: #9474d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cbb",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 187
  },
  "hsl": {
    "h": 256.535,
    "s": 51.417,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47223,
    "c": 0.18827,
    "h": 289.9
  },
  "luminance": 0.09252
}

Semantic roles & 50–950 ramp

primary
#5F3CBB
secondary
#B7C88B
accent
#DB4DB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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