#5F3CB3#5F3CB3

#5F3CB3 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.179 H 291.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5F3CB3
RGBrgb(95, 60, 179)
HSLhsl(258, 50%, 47%)
HSVhsv(258, 66%, 70%)
CMYKcmyk(46.9%, 66.5%, 0%, 29.8%)
CIE-LABlab(35.83, 43.58, -58.05)
CIE-LCHlch(35.83, 72.59, 306.90°)
OKLaboklab(46.57% 0.0652 -0.1662)
OKLCHoklch(46.57% 0.179 291.4)
XYZxyz(14.4696, 8.9188, 43.5982)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CB3 #90B33C
analogous
#3C55B3 #5F3CB3 #9B3CB3
triadic
#5F3CB3 #B35F3C #3CB35F
tetradic
#5F3CB3 #B33C55 #90B33C #3CB39B
square
#5F3CB3 #B33C55 #90B33C #3CB39B
split-complementary
#5F3CB3 #B39B3C #55B33C
monochromatic
#2E1D57 #472D85 #5F3CB3 #8162CA #A590DA

Accessibility & contrast

On white

7.54
#5F3CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F3CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CB3
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CB3#FFFFFF#000000##FFFFFF
##5F3CB31.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#455972
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3cb3;
/* rgb */ color: rgb(95, 60, 179);
/* oklch */ color: oklch(46.6% 0.179 291.4);
Tailwind
colors: {
  custom: {
    50: '#9374cb',
    500: '#5f3cb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cb3;
$custom-light: #9374cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cb3",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 179
  },
  "hsl": {
    "h": 257.647,
    "s": 49.791,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46566,
    "c": 0.17854,
    "h": 291.4
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#5F3CB3
secondary
#B2C586
accent
#D94EB0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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