#5F3FBB#5F3FBB

#5F3FBB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.185 H 289.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5F3FBB
RGBrgb(95, 63, 187)
HSLhsl(255, 50%, 49%)
HSVhsv(255, 66%, 73%)
CMYKcmyk(49.2%, 66.3%, 0%, 26.7%)
CIE-LABlab(37.07, 44.21, -60.76)
CIE-LCHlch(37.07, 75.14, 306.04°)
OKLaboklab(47.66% 0.0611 -0.1741)
OKLCHoklch(47.66% 0.185 289.3)
XYZxyz(15.4639, 9.5751, 48.0375)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FBB #9BBB3F
analogous
#3F5DBB #5F3FBB #9D3FBB
triadic
#5F3FBB #BB5F3F #3FBB5F
tetradic
#5F3FBB #BB3F5D #9BBB3F #3FBB9D
square
#5F3FBB #BB3F5D #9BBB3F #3FBB9D
split-complementary
#5F3FBB #BB9D3F #5DBB3F
monochromatic
#30205F #48308D #5F3FBB #846ACD #AA98DC

Accessibility & contrast

On white

7.20
#5F3FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5F3FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3FBB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FBB#FFFFFF#000000##FFFFFF
##5F3FBB1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#405D77
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3fbb;
/* rgb */ color: rgb(95, 63, 187);
/* oklch */ color: oklch(47.7% 0.185 289.3);
Tailwind
colors: {
  custom: {
    50: '#9476d0',
    500: '#5f3fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fbb;
$custom-light: #9476d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fbb",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 255.484,
    "s": 49.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47658,
    "c": 0.18456,
    "h": 289.3
  },
  "luminance": 0.09576
}

Semantic roles & 50–950 ramp

primary
#5F3FBB
secondary
#B9C88E
accent
#D94FB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F3FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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