#5F47CF#5F47CF

#5F47CF is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.199 H 284.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5F47CF
RGBrgb(95, 71, 207)
HSLhsl(251, 59%, 55%)
HSVhsv(251, 66%, 81%)
CMYKcmyk(54.1%, 65.7%, 0%, 18.8%)
CIE-LABlab(40.32, 45.61, -67.11)
CIE-LCHlch(40.32, 81.15, 304.20°)
OKLaboklab(50.5% 0.0509 -0.1928)
OKLCHoklch(50.5% 0.199 284.8)
XYZxyz(18.2316, 11.4433, 60.2675)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47CF #B7CF47
analogous
#4773CF #5F47CF #A347CF
triadic
#5F47CF #CF5F47 #47CF5F
tetradic
#5F47CF #CF4773 #B7CF47 #47CFA3
square
#5F47CF #CF4773 #B7CF47 #47CFA3
split-complementary
#5F47CF #CFA347 #73CF47
monochromatic
#30207B #432DAC #5F47CF #8978DC #B3A8E8

Accessibility & contrast

On white

6.39
#5F47CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5F47CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47CF
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47CF#FFFFFF#000000##FFFFFF
##5F47CF1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#2E6985
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f47cf;
/* rgb */ color: rgb(95, 71, 207);
/* oklch */ color: oklch(50.5% 0.199 284.8);
Tailwind
colors: {
  custom: {
    50: '#977cdf',
    500: '#5f47cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f47cf;
$custom-light: #977cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47cf",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 207
  },
  "hsl": {
    "h": 250.588,
    "s": 58.621,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.19943,
    "h": 284.8
  },
  "luminance": 0.11444
}

Semantic roles & 50–950 ramp

primary
#5F47CF
secondary
#CCD69C
accent
#E246C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F47CF

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

Preview Lab → · Contrast checker → · Palette generator →

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