#5F47CE#5F47CE

#5F47CE is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.4% C 0.198 H 284.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5F47CE
RGBrgb(95, 71, 206)
HSLhsl(251, 58%, 54%)
HSVhsv(251, 66%, 81%)
CMYKcmyk(53.9%, 65.5%, 0%, 19.2%)
CIE-LABlab(40.24, 45.31, -66.67)
CIE-LCHlch(40.24, 80.61, 304.20°)
OKLaboklab(50.42% 0.0511 -0.1915)
OKLCHoklch(50.42% 0.198 284.9)
XYZxyz(18.1098, 11.3946, 59.6257)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47CE #B6CE47
analogous
#4773CE #5F47CE #A347CE
triadic
#5F47CE #CE5F47 #47CE5F
tetradic
#5F47CE #CE4773 #B6CE47 #47CEA3
square
#5F47CE #CE4773 #B6CE47 #47CEA3
split-complementary
#5F47CE #CEA347 #73CE47
monochromatic
#30217A #442DAA #5F47CE #8977DB #B3A8E8

Accessibility & contrast

On white

6.40
#5F47CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5F47CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47CE
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47CE#FFFFFF#000000##FFFFFF
##5F47CE1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#2F6984
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f47ce;
/* rgb */ color: rgb(95, 71, 206);
/* oklch */ color: oklch(50.4% 0.198 284.9);
Tailwind
colors: {
  custom: {
    50: '#967cde',
    500: '#5f47ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f47ce;
$custom-light: #967cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47ce",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 206
  },
  "hsl": {
    "h": 250.667,
    "s": 57.94,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50415,
    "c": 0.1982,
    "h": 284.9
  },
  "luminance": 0.11396
}

Semantic roles & 50–950 ramp

primary
#5F47CE
secondary
#CBD59C
accent
#E147C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F47CE

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

Preview Lab → · Contrast checker → · Palette generator →

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