#5F47CA#5F47CA

#5F47CA is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.193 H 285.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5F47CA
RGBrgb(95, 71, 202)
HSLhsl(251, 55%, 54%)
HSVhsv(251, 65%, 79%)
CMYKcmyk(53%, 64.9%, 0%, 20.8%)
CIE-LABlab(39.92, 44.12, -64.87)
CIE-LCHlch(39.92, 78.45, 304.22°)
OKLaboklab(50.09% 0.0515 -0.1862)
OKLCHoklch(50.09% 0.193 285.5)
XYZxyz(17.6300, 11.2027, 57.0990)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47CA #B2CA47
analogous
#4770CA #5F47CA #A047CA
triadic
#5F47CA #CA5F47 #47CA5F
tetradic
#5F47CA #CA4770 #B2CA47 #47CAA0
square
#5F47CA #CA4770 #B2CA47 #47CAA0
split-complementary
#5F47CA #CAA047 #70CA47
monochromatic
#312275 #452FA4 #5F47CA #8877D8 #B2A6E5

Accessibility & contrast

On white

6.48
#5F47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5F47CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47CA
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47CA#FFFFFF#000000##FFFFFF
##5F47CA1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#336782
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f47ca;
/* rgb */ color: rgb(95, 71, 202);
/* oklch */ color: oklch(50.1% 0.193 285.5);
Tailwind
colors: {
  custom: {
    50: '#967cdb',
    500: '#5f47ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f47ca;
$custom-light: #967cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47ca",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 250.992,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50087,
    "c": 0.19323,
    "h": 285.5
  },
  "luminance": 0.11204
}

Semantic roles & 50–950 ramp

primary
#5F47CA
secondary
#C8D29A
accent
#DF49C3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F47CA

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

Preview Lab → · Contrast checker → · Palette generator →

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