#5F3DBB#5F3DBB

#5F3DBB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.4% C 0.187 H 289.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5F3DBB
RGBrgb(95, 61, 187)
HSLhsl(256, 51%, 49%)
HSVhsv(256, 67%, 73%)
CMYKcmyk(49.2%, 67.4%, 0%, 26.7%)
CIE-LABlab(36.66, 45.32, -61.42)
CIE-LCHlch(36.66, 76.33, 306.42°)
OKLaboklab(47.37% 0.0631 -0.1761)
OKLCHoklch(47.37% 0.187 289.7)
XYZxyz(15.3551, 9.3576, 48.0012)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DBB #99BB3D
analogous
#3D5ABB #5F3DBB #9E3DBB
triadic
#5F3DBB #BB5F3D #3DBB5F
tetradic
#5F3DBB #BB3D5A #99BB3D #3DBB9E
square
#5F3DBB #BB3D5A #99BB3D #3DBB9E
split-complementary
#5F3DBB #BB9E3D #5ABB3D
monochromatic
#301F5F #482E8D #5F3DBB #8368CE #A996DD

Accessibility & contrast

On white

7.31
#5F3DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3DBB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DBB#FFFFFF#000000##FFFFFF
##5F3DBB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3dbb;
/* rgb */ color: rgb(95, 61, 187);
/* oklch */ color: oklch(47.4% 0.187 289.7);
Tailwind
colors: {
  custom: {
    50: '#9475d0',
    500: '#5f3dbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dbb;
$custom-light: #9475d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dbb",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 187
  },
  "hsl": {
    "h": 256.19,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47366,
    "c": 0.18705,
    "h": 289.7
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#5F3DBB
secondary
#B8C88C
accent
#DA4EB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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