#5F48BF#5F48BF

#5F48BF is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.4% C 0.178 H 286.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5F48BF
RGBrgb(95, 72, 191)
HSLhsl(252, 48%, 52%)
HSVhsv(252, 62%, 75%)
CMYKcmyk(50.3%, 62.3%, 0%, 25.1%)
CIE-LABlab(39.29, 40.25, -59.49)
CIE-LCHlch(39.29, 71.83, 304.08°)
OKLaboklab(49.36% 0.0515 -0.1704)
OKLCHoklch(49.36% 0.178 286.8)
XYZxyz(16.4379, 10.8284, 50.5041)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48BF #A8BF48
analogous
#486DBF #5F48BF #9B48BF
triadic
#5F48BF #BF5F48 #48BF5F
tetradic
#5F48BF #BF486D #A8BF48 #48BF9B
square
#5F48BF #BF486D #A8BF48 #48BF9B
split-complementary
#5F48BF #BF9B48 #6DBF48
monochromatic
#322468 #473496 #5F48BF #8775CF #AEA3DF

Accessibility & contrast

On white

6.63
#5F48BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F48BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48BF
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48BF#FFFFFF#000000##FFFFFF
##5F48BF1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#3C647D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f48bf;
/* rgb */ color: rgb(95, 72, 191);
/* oklch */ color: oklch(49.4% 0.178 286.8);
Tailwind
colors: {
  custom: {
    50: '#947cd3',
    500: '#5f48bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f48bf;
$custom-light: #947cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48bf",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 251.597,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49364,
    "c": 0.17803,
    "h": 286.8
  },
  "luminance": 0.10829
}

Semantic roles & 50–950 ramp

primary
#5F48BF
secondary
#C1CC97
accent
#D850BE
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F48BF

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

Preview Lab → · Contrast checker → · Palette generator →

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