#5F4EBE#5F4EBE

#5F4EBE is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.3% C 0.169 H 285.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5F4EBE
RGBrgb(95, 78, 190)
HSLhsl(249, 46%, 53%)
HSVhsv(249, 59%, 75%)
CMYKcmyk(50%, 58.9%, 0%, 25.5%)
CIE-LABlab(40.57, 36.40, -56.83)
CIE-LCHlch(40.57, 67.49, 302.64°)
OKLaboklab(50.28% 0.0452 -0.1626)
OKLCHoklch(50.28% 0.169 285.5)
XYZxyz(16.7352, 11.5986, 50.0622)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EBE #ADBE4E
analogous
#4E75BE #5F4EBE #974EBE
triadic
#5F4EBE #BE5F4E #4EBE5F
tetradic
#5F4EBE #BE4E75 #ADBE4E #4EBE97
square
#5F4EBE #BE4E75 #ADBE4E #4EBE97
split-complementary
#5F4EBE #BE974E #75BE4E
monochromatic
#31276A #463897 #5F4EBE #877BCE #B0A8DF

Accessibility & contrast

On white

6.33
#5F4EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5F4EBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EBE
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EBE#FFFFFF#000000##FFFFFF
##5F4EBE1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#3C687E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4ebe;
/* rgb */ color: rgb(95, 78, 190);
/* oklch */ color: oklch(50.3% 0.169 285.5);
Tailwind
colors: {
  custom: {
    50: '#9480d2',
    500: '#5f4ebe',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ebe;
$custom-light: #9480d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ebe",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 190
  },
  "hsl": {
    "h": 249.107,
    "s": 46.281,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50279,
    "c": 0.16873,
    "h": 285.5
  },
  "luminance": 0.11599
}

Semantic roles & 50–950 ramp

primary
#5F4EBE
secondary
#C5CC9C
accent
#D652C2
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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