#5F4CD0#5F4CD0

#5F4CD0 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.4% C 0.195 H 283.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD0
RGBrgb(95, 76, 208)
HSLhsl(249, 58%, 56%)
HSVhsv(249, 63%, 82%)
CMYKcmyk(54.3%, 63.5%, 0%, 18.4%)
CIE-LABlab(41.46, 43.05, -65.83)
CIE-LCHlch(41.46, 78.66, 303.19°)
OKLaboklab(51.35% 0.0462 -0.189)
OKLCHoklch(51.35% 0.195 283.7)
XYZxyz(18.6855, 12.1548, 61.0238)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD0 #BDD04C
analogous
#4C7BD0 #5F4CD0 #A14CD0
triadic
#5F4CD0 #D05F4C #4CD05F
tetradic
#5F4CD0 #D04C7B #BDD04C #4CD0A1
square
#5F4CD0 #D04C7B #BDD04C #4CD0A1
split-complementary
#5F4CD0 #D0A14C #7BD04C
monochromatic
#2F2280 #412EB0 #5F4CD0 #8A7CDD #B6ADE9

Accessibility & contrast

On white

6.12
#5F4CD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5F4CD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD0
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD0#FFFFFF#000000##FFFFFF
##5F4CD01.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D4
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#2C6C87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4cd0;
/* rgb */ color: rgb(95, 76, 208);
/* oklch */ color: oklch(51.4% 0.195 283.7);
Tailwind
colors: {
  custom: {
    50: '#967fdf',
    500: '#5f4cd0',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd0;
$custom-light: #967fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd0",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 208
  },
  "hsl": {
    "h": 248.636,
    "s": 58.407,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51351,
    "c": 0.19459,
    "h": 283.7
  },
  "luminance": 0.12156
}

Semantic roles & 50–950 ramp

primary
#5F4CD0
secondary
#CFD7A0
accent
#E246CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4CD0

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

Preview Lab → · Contrast checker → · Palette generator →

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