#5F3DB8#5F3DB8

#5F3DB8 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.1% C 0.183 H 290.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5F3DB8
RGBrgb(95, 61, 184)
HSLhsl(257, 50%, 48%)
HSVhsv(257, 67%, 72%)
CMYKcmyk(48.4%, 66.8%, 0%, 27.8%)
CIE-LABlab(36.42, 44.46, -60.04)
CIE-LCHlch(36.42, 74.71, 306.52°)
OKLaboklab(47.12% 0.0635 -0.172)
OKLCHoklch(47.12% 0.183 290.3)
XYZxyz(15.0373, 9.2305, 46.3275)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DB8 #96B83D
analogous
#3D59B8 #5F3DB8 #9C3DB8
triadic
#5F3DB8 #B85F3D #3DB85F
tetradic
#5F3DB8 #B83D59 #96B83D #3DB89C
square
#5F3DB8 #B83D59 #96B83D #3DB89C
split-complementary
#5F3DB8 #B89C3D #59B83D
monochromatic
#301F5C #472E8A #5F3DB8 #8266CC #A894DB

Accessibility & contrast

On white

7.38
#5F3DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3DB8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DB8#FFFFFF#000000##FFFFFF
##5F3DB81.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3db8;
/* rgb */ color: rgb(95, 61, 184);
/* oklch */ color: oklch(47.1% 0.183 290.3);
Tailwind
colors: {
  custom: {
    50: '#9475ce',
    500: '#5f3db8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3db8;
$custom-light: #9475ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3db8",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 184
  },
  "hsl": {
    "h": 256.585,
    "s": 50.204,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47119,
    "c": 0.18339,
    "h": 290.3
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#5F3DB8
secondary
#B6C78A
accent
#DA4EB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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