#5F47CC#5F47CC

#5F47CC is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.2% C 0.196 H 285.2°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#5F47CC
RGBrgb(95, 71, 204)
HSLhsl(251, 57%, 54%)
HSVhsv(251, 65%, 80%)
CMYKcmyk(53.4%, 65.2%, 0%, 20%)
CIE-LABlab(40.08, 44.72, -65.77)
CIE-LCHlch(40.08, 79.53, 304.21°)
OKLaboklab(50.25% 0.0513 -0.1889)
OKLCHoklch(50.25% 0.196 285.2)
XYZxyz(17.8684, 11.2980, 58.3542)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47CC #B4CC47
analogous
#4772CC #5F47CC #A247CC
triadic
#5F47CC #CC5F47 #47CC5F
tetradic
#5F47CC #CC4772 #B4CC47 #47CCA2
square
#5F47CC #CC4772 #B4CC47 #47CCA2
split-complementary
#5F47CC #CCA247 #72CC47
monochromatic
#312177 #442EA7 #5F47CC #8977D9 #B2A7E7

Accessibility & contrast

On white

6.44
#5F47CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5F47CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47CC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47CC#FFFFFF#000000##FFFFFF
##5F47CC1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#316883
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f47cc;
/* rgb */ color: rgb(95, 71, 204);
/* oklch */ color: oklch(50.2% 0.196 285.2);
Tailwind
colors: {
  custom: {
    50: '#967cdd',
    500: '#5f47cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f47cc;
$custom-light: #967cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47cc",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 250.827,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5025,
    "c": 0.19571,
    "h": 285.2
  },
  "luminance": 0.11299
}

Semantic roles & 50–950 ramp

primary
#5F47CC
secondary
#CAD49B
accent
#E048C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F47CC

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

Preview Lab → · Contrast checker → · Palette generator →

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