#5F3EB8#5F3EB8

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

Color values

HEX#5F3EB8
RGBrgb(95, 62, 184)
HSLhsl(256, 50%, 48%)
HSVhsv(256, 66%, 72%)
CMYKcmyk(48.4%, 66.3%, 0%, 27.8%)
CIE-LABlab(36.63, 43.91, -59.71)
CIE-LCHlch(36.63, 74.11, 306.33°)
OKLaboklab(47.27% 0.0625 -0.1711)
OKLCHoklch(47.27% 0.182 290.1)
XYZxyz(15.0912, 9.3382, 46.3454)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EB8 #97B83E
analogous
#3E5AB8 #5F3EB8 #9C3EB8
triadic
#5F3EB8 #B85F3E #3EB85F
tetradic
#5F3EB8 #B83E5A #97B83E #3EB89C
square
#5F3EB8 #B83E5A #97B83E #3EB89C
split-complementary
#5F3EB8 #B89C3E #5AB83E
monochromatic
#301F5C #472F8A #5F3EB8 #8367CC #A895DB

Accessibility & contrast

On white

7.32
#5F3EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F3EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EB8
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EB8#FFFFFF#000000##FFFFFF
##5F3EB81.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#425C75
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3eb8;
/* rgb */ color: rgb(95, 62, 184);
/* oklch */ color: oklch(47.3% 0.182 290.1);
Tailwind
colors: {
  custom: {
    50: '#9475ce',
    500: '#5f3eb8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eb8;
$custom-light: #9475ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eb8",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 184
  },
  "hsl": {
    "h": 256.23,
    "s": 49.593,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47266,
    "c": 0.18213,
    "h": 290.1
  },
  "luminance": 0.09339
}

Semantic roles & 50–950 ramp

primary
#5F3EB8
secondary
#B7C78B
accent
#D94FB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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