#5F3FBA#5F3FBA

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

Color values

HEX#5F3FBA
RGBrgb(95, 63, 186)
HSLhsl(256, 49%, 49%)
HSVhsv(256, 66%, 73%)
CMYKcmyk(48.9%, 66.1%, 0%, 27.1%)
CIE-LABlab(36.99, 43.93, -60.30)
CIE-LCHlch(36.99, 74.60, 306.07°)
OKLaboklab(47.58% 0.0613 -0.1728)
OKLCHoklch(47.58% 0.183 289.5)
XYZxyz(15.3572, 9.5324, 47.4756)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FBA #9ABA3F
analogous
#3F5DBA #5F3FBA #9D3FBA
triadic
#5F3FBA #BA5F3F #3FBA5F
tetradic
#5F3FBA #BA3F5D #9ABA3F #3FBA9D
square
#5F3FBA #BA3F5D #9ABA3F #3FBA9D
split-complementary
#5F3FBA #BA9D3F #5DBA3F
monochromatic
#30205F #48308C #5F3FBA #836ACC #A997DC

Accessibility & contrast

On white

7.22
#5F3FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F3FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3FBA
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FBA#FFFFFF#000000##FFFFFF
##5F3FBA1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3fba;
/* rgb */ color: rgb(95, 63, 186);
/* oklch */ color: oklch(47.6% 0.183 289.5);
Tailwind
colors: {
  custom: {
    50: '#9476d0',
    500: '#5f3fba',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fba;
$custom-light: #9476d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fba",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 186
  },
  "hsl": {
    "h": 255.61,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47576,
    "c": 0.18333,
    "h": 289.5
  },
  "luminance": 0.09533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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