#5F47CD#5F47CD

#5F47CD is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.197 H 285.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5F47CD
RGBrgb(95, 71, 205)
HSLhsl(251, 57%, 54%)
HSVhsv(251, 65%, 80%)
CMYKcmyk(53.7%, 65.4%, 0%, 19.6%)
CIE-LABlab(40.16, 45.01, -66.22)
CIE-LCHlch(40.16, 80.07, 304.21°)
OKLaboklab(50.33% 0.0512 -0.1902)
OKLCHoklch(50.33% 0.197 285.1)
XYZxyz(17.9887, 11.3462, 58.9879)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47CD #B5CD47
analogous
#4772CD #5F47CD #A247CD
triadic
#5F47CD #CD5F47 #47CD5F
tetradic
#5F47CD #CD4772 #B5CD47 #47CDA2
square
#5F47CD #CD4772 #B5CD47 #47CDA2
split-complementary
#5F47CD #CDA247 #72CD47
monochromatic
#312179 #442EA9 #5F47CD #8977DA #B3A7E7

Accessibility & contrast

On white

6.42
#5F47CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5F47CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47CD
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47CD#FFFFFF#000000##FFFFFF
##5F47CD1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#306884
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f47cd;
/* rgb */ color: rgb(95, 71, 205);
/* oklch */ color: oklch(50.3% 0.197 285.1);
Tailwind
colors: {
  custom: {
    50: '#967cdd',
    500: '#5f47cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f47cd;
$custom-light: #967cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47cd",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 250.746,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50333,
    "c": 0.19695,
    "h": 285.1
  },
  "luminance": 0.11347
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F47CD

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

Preview Lab → · Contrast checker → · Palette generator →

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