#5F4EBD#5F4EBD

#5F4EBD is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.167 H 285.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5F4EBD
RGBrgb(95, 78, 189)
HSLhsl(249, 46%, 52%)
HSVhsv(249, 59%, 74%)
CMYKcmyk(49.7%, 58.7%, 0%, 25.9%)
CIE-LABlab(40.50, 36.10, -56.36)
CIE-LCHlch(40.50, 66.93, 302.64°)
OKLaboklab(50.21% 0.0452 -0.1612)
OKLCHoklch(50.21% 0.167 285.7)
XYZxyz(16.6263, 11.5550, 49.4885)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EBD #ACBD4E
analogous
#4E75BD #5F4EBD #964EBD
triadic
#5F4EBD #BD5F4E #4EBD5F
tetradic
#5F4EBD #BD4E75 #ACBD4E #4EBD96
square
#5F4EBD #BD4E75 #ACBD4E #4EBD96
split-complementary
#5F4EBD #BD964E #75BD4E
monochromatic
#312769 #463896 #5F4EBD #877BCE #B0A7DE

Accessibility & contrast

On white

6.34
#5F4EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5F4EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EBD
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EBD#FFFFFF#000000##FFFFFF
##5F4EBD1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C1
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#3D687E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f4ebd;
/* rgb */ color: rgb(95, 78, 189);
/* oklch */ color: oklch(50.2% 0.167 285.7);
Tailwind
colors: {
  custom: {
    50: '#9380d2',
    500: '#5f4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ebd;
$custom-light: #9380d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ebd",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 249.189,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50205,
    "c": 0.16741,
    "h": 285.7
  },
  "luminance": 0.11556
}

Semantic roles & 50–950 ramp

primary
#5F4EBD
secondary
#C4CC9B
accent
#D552C1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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