#5F49BB#5F49BB

#5F49BB is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.2% C 0.172 H 287.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5F49BB
RGBrgb(95, 73, 187)
HSLhsl(252, 46%, 51%)
HSVhsv(252, 61%, 73%)
CMYKcmyk(49.2%, 61%, 0%, 26.7%)
CIE-LABlab(39.22, 38.47, -57.27)
CIE-LCHlch(39.22, 68.99, 303.89°)
OKLaboklab(49.22% 0.0507 -0.1639)
OKLCHoklch(49.22% 0.172 287.2)
XYZxyz(16.0689, 10.7851, 48.2391)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F49BB #A5BB49
analogous
#496CBB #5F49BB #9849BB
triadic
#5F49BB #BB5F49 #49BB5F
tetradic
#5F49BB #BB496C #A5BB49 #49BB98
square
#5F49BB #BB496C #A5BB49 #49BB98
split-complementary
#5F49BB #BB9849 #6CBB49
monochromatic
#322564 #483691 #5F49BB #8676CC #ADA2DC

Accessibility & contrast

On white

6.65
#5F49BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5F49BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F49BB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F49BB#FFFFFF#000000##FFFFFF
##5F49BB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#3F647B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f49bb;
/* rgb */ color: rgb(95, 73, 187);
/* oklch */ color: oklch(49.2% 0.172 287.2);
Tailwind
colors: {
  custom: {
    50: '#947dd0',
    500: '#5f49bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f49bb;
$custom-light: #947dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f49bb",
  "rgb": {
    "r": 95,
    "g": 73,
    "b": 187
  },
  "hsl": {
    "h": 251.579,
    "s": 45.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49217,
    "c": 0.17154,
    "h": 287.2
  },
  "luminance": 0.10786
}

Semantic roles & 50–950 ramp

primary
#5F49BB
secondary
#BFC997
accent
#D553BC
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F49BB

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

Preview Lab → · Contrast checker → · Palette generator →

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