#5F4CCB#5F4CCB

#5F4CCB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 51.0% C 0.188 H 284.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5F4CCB
RGBrgb(95, 76, 203)
HSLhsl(249, 55%, 55%)
HSVhsv(249, 63%, 80%)
CMYKcmyk(53.2%, 62.6%, 0%, 20.4%)
CIE-LABlab(41.08, 41.54, -63.56)
CIE-LCHlch(41.08, 75.93, 303.16°)
OKLaboklab(50.95% 0.0466 -0.1824)
OKLCHoklch(50.95% 0.188 284.3)
XYZxyz(18.0800, 11.9126, 57.8350)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CCB #B8CB4C
analogous
#4C79CB #5F4CCB #9E4CCB
triadic
#5F4CCB #CB5F4C #4CCB5F
tetradic
#5F4CCB #CB4C79 #B8CB4C #4CCB9E
square
#5F4CCB #CB4C79 #B8CB4C #4CCB9E
split-complementary
#5F4CCB #CB9E4C #79CB4C
monochromatic
#302379 #4331A9 #5F4CCB #897BD9 #B4ABE7

Accessibility & contrast

On white

6.21
#5F4CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5F4CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CCB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CCB#FFFFFF#000000##FFFFFF
##5F4CCB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#326B84
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f4ccb;
/* rgb */ color: rgb(95, 76, 203);
/* oklch */ color: oklch(51.0% 0.188 284.3);
Tailwind
colors: {
  custom: {
    50: '#967fdc',
    500: '#5f4ccb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ccb;
$custom-light: #967fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ccb",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 203
  },
  "hsl": {
    "h": 248.976,
    "s": 54.978,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50951,
    "c": 0.18824,
    "h": 284.3
  },
  "luminance": 0.11914
}

Semantic roles & 50–950 ramp

primary
#5F4CCB
secondary
#CCD49F
accent
#DE49C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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