#5F3EBB#5F3EBB

#5F3EBB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.5% C 0.186 H 289.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5F3EBB
RGBrgb(95, 62, 187)
HSLhsl(256, 50%, 49%)
HSVhsv(256, 67%, 73%)
CMYKcmyk(49.2%, 66.8%, 0%, 26.7%)
CIE-LABlab(36.87, 44.77, -61.09)
CIE-LCHlch(36.87, 75.74, 306.24°)
OKLaboklab(47.51% 0.0621 -0.1751)
OKLCHoklch(47.51% 0.186 289.5)
XYZxyz(15.4090, 9.4654, 48.0192)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EBB #9ABB3E
analogous
#3E5CBB #5F3EBB #9E3EBB
triadic
#5F3EBB #BB5F3E #3EBB5F
tetradic
#5F3EBB #BB3E5C #9ABB3E #3EBB9E
square
#5F3EBB #BB3E5C #9ABB3E #3EBB9E
split-complementary
#5F3EBB #BB9E3E #5CBB3E
monochromatic
#30205F #482F8D #5F3EBB #8369CD #A997DC

Accessibility & contrast

On white

7.26
#5F3EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F3EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EBB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EBB#FFFFFF#000000##FFFFFF
##5F3EBB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#405D77
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3ebb;
/* rgb */ color: rgb(95, 62, 187);
/* oklch */ color: oklch(47.5% 0.186 289.5);
Tailwind
colors: {
  custom: {
    50: '#9475d0',
    500: '#5f3ebb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ebb;
$custom-light: #9475d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ebb",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 187
  },
  "hsl": {
    "h": 255.84,
    "s": 50.201,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47511,
    "c": 0.18581,
    "h": 289.5
  },
  "luminance": 0.09466
}

Semantic roles & 50–950 ramp

primary
#5F3EBB
secondary
#B8C88D
accent
#DA4EB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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