#5F48BC#5F48BC

#5F48BC is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.1% C 0.174 H 287.3°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5F48BC
RGBrgb(95, 72, 188)
HSLhsl(252, 46%, 51%)
HSVhsv(252, 62%, 74%)
CMYKcmyk(49.5%, 61.7%, 0%, 26.3%)
CIE-LABlab(39.07, 39.36, -58.10)
CIE-LCHlch(39.07, 70.17, 304.12°)
OKLaboklab(49.13% 0.0517 -0.1663)
OKLCHoklch(49.13% 0.174 287.3)
XYZxyz(16.1111, 10.6977, 48.7832)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48BC #A5BC48
analogous
#486BBC #5F48BC #9948BC
triadic
#5F48BC #BC5F48 #48BC5F
tetradic
#5F48BC #BC486B #A5BC48 #48BC99
square
#5F48BC #BC486B #A5BC48 #48BC99
split-complementary
#5F48BC #BC9948 #6BBC48
monochromatic
#322565 #483592 #5F48BC #8675CC #ADA2DD

Accessibility & contrast

On white

6.69
#5F48BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F48BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48BC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48BC#FFFFFF#000000##FFFFFF
##5F48BC1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#3E637B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f48bc;
/* rgb */ color: rgb(95, 72, 188);
/* oklch */ color: oklch(49.1% 0.174 287.3);
Tailwind
colors: {
  custom: {
    50: '#947cd1',
    500: '#5f48bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f48bc;
$custom-light: #947cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48bc",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 251.897,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.17417,
    "h": 287.3
  },
  "luminance": 0.10698
}

Semantic roles & 50–950 ramp

primary
#5F48BC
secondary
#BFCA96
accent
#D652BC
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F48BC

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

Preview Lab → · Contrast checker → · Palette generator →

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