#5F47BE#5F47BE

#5F47BE is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.1% C 0.178 H 287.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5F47BE
RGBrgb(95, 71, 190)
HSLhsl(252, 48%, 51%)
HSVhsv(252, 63%, 75%)
CMYKcmyk(50%, 62.6%, 0%, 25.5%)
CIE-LABlab(39.00, 40.54, -59.38)
CIE-LCHlch(39.00, 71.90, 304.32°)
OKLaboklab(49.13% 0.0527 -0.1701)
OKLCHoklch(49.13% 0.178 287.2)
XYZxyz(16.2641, 10.6563, 49.9051)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47BE #A6BE47
analogous
#476ABE #5F47BE #9A47BE
triadic
#5F47BE #BE5F47 #47BE5F
tetradic
#5F47BE #BE476A #A6BE47 #47BE9A
square
#5F47BE #BE476A #A6BE47 #47BE9A
split-complementary
#5F47BE #BE9A47 #6ABE47
monochromatic
#322466 #473494 #5F47BE #8674CE #AEA1DE

Accessibility & contrast

On white

6.71
#5F47BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5F47BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47BE
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47BE#FFFFFF#000000##FFFFFF
##5F47BE1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#3D637C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f47be;
/* rgb */ color: rgb(95, 71, 190);
/* oklch */ color: oklch(49.1% 0.178 287.2);
Tailwind
colors: {
  custom: {
    50: '#947bd2',
    500: '#5f47be',
    950: '#000000',
  },
}
SCSS
$custom: #5f47be;
$custom-light: #947bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47be",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 190
  },
  "hsl": {
    "h": 252.101,
    "s": 47.791,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49126,
    "c": 0.17806,
    "h": 287.2
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#5F47BE
secondary
#C0CB96
accent
#D750BC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F47BE

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

Preview Lab → · Contrast checker → · Palette generator →

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