#5F49BF#5F49BF

#5F49BF is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.5% C 0.177 H 286.6°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5F49BF
RGBrgb(95, 73, 191)
HSLhsl(251, 48%, 52%)
HSVhsv(251, 62%, 75%)
CMYKcmyk(50.3%, 61.8%, 0%, 25.1%)
CIE-LABlab(39.51, 39.67, -59.13)
CIE-LCHlch(39.51, 71.20, 303.86°)
OKLaboklab(49.53% 0.0505 -0.1694)
OKLCHoklch(49.53% 0.177 286.6)
XYZxyz(16.5031, 10.9588, 50.5258)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F49BF #A9BF49
analogous
#496EBF #5F49BF #9A49BF
triadic
#5F49BF #BF5F49 #49BF5F
tetradic
#5F49BF #BF496E #A9BF49 #49BF9A
square
#5F49BF #BF496E #A9BF49 #49BF9A
split-complementary
#5F49BF #BF9A49 #6EBF49
monochromatic
#322569 #473596 #5F49BF #8776CF #AFA4DF

Accessibility & contrast

On white

6.58
#5F49BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5F49BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F49BF
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F49BF#FFFFFF#000000##FFFFFF
##5F49BF1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#3C657D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f49bf;
/* rgb */ color: rgb(95, 73, 191);
/* oklch */ color: oklch(49.5% 0.177 286.6);
Tailwind
colors: {
  custom: {
    50: '#947dd3',
    500: '#5f49bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f49bf;
$custom-light: #947dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f49bf",
  "rgb": {
    "r": 95,
    "g": 73,
    "b": 191
  },
  "hsl": {
    "h": 251.186,
    "s": 47.967,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49525,
    "c": 0.17673,
    "h": 286.6
  },
  "luminance": 0.1096
}

Semantic roles & 50–950 ramp

primary
#5F49BF
secondary
#C2CC98
accent
#D850BE
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F49BF

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

Preview Lab → · Contrast checker → · Palette generator →

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