#5F3FB3#5F3FB3

#5F3FB3 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.0% C 0.175 H 290.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5F3FB3
RGBrgb(95, 63, 179)
HSLhsl(257, 48%, 47%)
HSVhsv(257, 65%, 70%)
CMYKcmyk(46.9%, 64.8%, 0%, 29.8%)
CIE-LABlab(36.45, 41.91, -57.05)
CIE-LCHlch(36.45, 70.79, 306.30°)
OKLaboklab(47.01% 0.0621 -0.1632)
OKLCHoklch(47.01% 0.175 290.8)
XYZxyz(14.6312, 9.2421, 43.6521)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FB3 #93B33F
analogous
#3F59B3 #5F3FB3 #993FB3
triadic
#5F3FB3 #B35F3F #3FB35F
tetradic
#5F3FB3 #B33F59 #93B33F #3FB399
square
#5F3FB3 #B33F59 #93B33F #3FB399
split-complementary
#5F3FB3 #B3993F #59B33F
monochromatic
#2F1F58 #472F86 #5F3FB3 #8166C9 #A793D9

Accessibility & contrast

On white

7.37
#5F3FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3FB3
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FB3#FFFFFF#000000##FFFFFF
##5F3FB31.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#455B73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3fb3;
/* rgb */ color: rgb(95, 63, 179);
/* oklch */ color: oklch(47.0% 0.175 290.8);
Tailwind
colors: {
  custom: {
    50: '#9376cb',
    500: '#5f3fb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fb3;
$custom-light: #9376cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fb3",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 256.552,
    "s": 47.934,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47013,
    "c": 0.17465,
    "h": 290.8
  },
  "luminance": 0.09243
}

Semantic roles & 50–950 ramp

primary
#5F3FB3
secondary
#B4C489
accent
#D850B2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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