#5F47BC#5F47BC

#5F47BC is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.0% C 0.175 H 287.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5F47BC
RGBrgb(95, 71, 188)
HSLhsl(252, 47%, 51%)
HSVhsv(252, 62%, 74%)
CMYKcmyk(49.5%, 62.2%, 0%, 26.3%)
CIE-LABlab(38.85, 39.94, -58.45)
CIE-LCHlch(38.85, 70.80, 304.35°)
OKLaboklab(48.97% 0.0528 -0.1674)
OKLCHoklch(48.97% 0.176 287.5)
XYZxyz(16.0470, 10.5695, 48.7618)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47BC #A4BC47
analogous
#4769BC #5F47BC #9A47BC
triadic
#5F47BC #BC5F47 #47BC5F
tetradic
#5F47BC #BC4769 #A4BC47 #47BC9A
square
#5F47BC #BC4769 #A4BC47 #47BC9A
split-complementary
#5F47BC #BC9A47 #69BC47
monochromatic
#322464 #483591 #5F47BC #8674CC #ADA1DD

Accessibility & contrast

On white

6.74
#5F47BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F47BC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47BC#FFFFFF#000000##FFFFFF
##5F47BC1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#3E637B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f47bc;
/* rgb */ color: rgb(95, 71, 188);
/* oklch */ color: oklch(49.0% 0.175 287.5);
Tailwind
colors: {
  custom: {
    50: '#947bd1',
    500: '#5f47bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f47bc;
$custom-light: #947bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47bc",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 252.308,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4897,
    "c": 0.1755,
    "h": 287.5
  },
  "luminance": 0.1057
}

Semantic roles & 50–950 ramp

primary
#5F47BC
secondary
#BFC995
accent
#D652BB
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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