#5F47BF#5F47BF

#5F47BF is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.2% C 0.179 H 287.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5F47BF
RGBrgb(95, 71, 191)
HSLhsl(252, 48%, 51%)
HSVhsv(252, 63%, 75%)
CMYKcmyk(50.3%, 62.8%, 0%, 25.1%)
CIE-LABlab(39.07, 40.84, -59.85)
CIE-LCHlch(39.07, 72.45, 304.31°)
OKLaboklab(49.21% 0.0526 -0.1715)
OKLCHoklch(49.21% 0.179 287)
XYZxyz(16.3738, 10.7002, 50.4827)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47BF #A7BF47
analogous
#476BBF #5F47BF #9B47BF
triadic
#5F47BF #BF5F47 #47BF5F
tetradic
#5F47BF #BF476B #A7BF47 #47BF9B
square
#5F47BF #BF476B #A7BF47 #47BF9B
split-complementary
#5F47BF #BF9B47 #6BBF47
monochromatic
#322468 #473495 #5F47BF #8674CF #AEA2DF

Accessibility & contrast

On white

6.69
#5F47BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F47BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47BF
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47BF#FFFFFF#000000##FFFFFF
##5F47BF1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#3C647C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f47bf;
/* rgb */ color: rgb(95, 71, 191);
/* oklch */ color: oklch(49.2% 0.179 287.0);
Tailwind
colors: {
  custom: {
    50: '#947bd3',
    500: '#5f47bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f47bf;
$custom-light: #947bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47bf",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 191
  },
  "hsl": {
    "h": 252,
    "s": 48.387,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49205,
    "c": 0.17934,
    "h": 287
  },
  "luminance": 0.10701
}

Semantic roles & 50–950 ramp

primary
#5F47BF
secondary
#C1CB96
accent
#D850BD
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F47BF

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

Preview Lab → · Contrast checker → · Palette generator →

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