#5F47BB#5F47BB

#5F47BB is a mid, vivid violet. Relative luminance 0.105; OKLCH L 48.9% C 0.174 H 287.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5F47BB
RGBrgb(95, 71, 187)
HSLhsl(252, 46%, 51%)
HSVhsv(252, 62%, 73%)
CMYKcmyk(49.2%, 62%, 0%, 26.7%)
CIE-LABlab(38.77, 39.65, -57.99)
CIE-LCHlch(38.77, 70.25, 304.36°)
OKLaboklab(48.89% 0.0529 -0.166)
OKLCHoklch(48.89% 0.174 287.7)
XYZxyz(15.9396, 10.5265, 48.1960)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47BB #A3BB47
analogous
#4769BB #5F47BB #9947BB
triadic
#5F47BB #BB5F47 #47BB5F
tetradic
#5F47BB #BB4769 #A3BB47 #47BB99
square
#5F47BB #BB4769 #A3BB47 #47BB99
split-complementary
#5F47BB #BB9947 #69BB47
monochromatic
#322563 #483590 #5F47BB #8674CC #ADA0DC

Accessibility & contrast

On white

6.76
#5F47BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5F47BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47BB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47BB#FFFFFF#000000##FFFFFF
##5F47BB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#3F627A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f47bb;
/* rgb */ color: rgb(95, 71, 187);
/* oklch */ color: oklch(48.9% 0.174 287.7);
Tailwind
colors: {
  custom: {
    50: '#947bd0',
    500: '#5f47bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f47bb;
$custom-light: #947bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47bb",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 252.414,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48892,
    "c": 0.17422,
    "h": 287.7
  },
  "luminance": 0.10527
}

Semantic roles & 50–950 ramp

primary
#5F47BB
secondary
#BEC995
accent
#D652BA
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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