#5F4BC8#5F4BC8

#5F4BC8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.6% C 0.186 H 284.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5F4BC8
RGBrgb(95, 75, 200)
HSLhsl(250, 53%, 54%)
HSVhsv(250, 63%, 78%)
CMYKcmyk(52.5%, 62.5%, 0%, 21.6%)
CIE-LABlab(40.63, 41.21, -62.55)
CIE-LCHlch(40.63, 74.91, 303.38°)
OKLaboklab(50.55% 0.0478 -0.1794)
OKLCHoklch(50.55% 0.186 284.9)
XYZxyz(17.6576, 11.6342, 55.9476)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BC8 #B4C84B
analogous
#4B76C8 #5F4BC8 #9E4BC8
triadic
#5F4BC8 #C85F4B #4BC85F
tetradic
#5F4BC8 #C84B76 #B4C84B #4BC89E
square
#5F4BC8 #C84B76 #B4C84B #4BC89E
split-complementary
#5F4BC8 #C89E4B #76C84B
monochromatic
#312475 #4432A4 #5F4BC8 #897AD6 #B2A9E5

Accessibility & contrast

On white

6.31
#5F4BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5F4BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BC8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BC8#FFFFFF#000000##FFFFFF
##5F4BC81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#356982
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4bc8;
/* rgb */ color: rgb(95, 75, 200);
/* oklch */ color: oklch(50.6% 0.186 284.9);
Tailwind
colors: {
  custom: {
    50: '#957eda',
    500: '#5f4bc8',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bc8;
$custom-light: #957eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bc8",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 200
  },
  "hsl": {
    "h": 249.6,
    "s": 53.191,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.18568,
    "h": 284.9
  },
  "luminance": 0.11635
}

Semantic roles & 50–950 ramp

primary
#5F4BC8
secondary
#CAD29D
accent
#DD4BC5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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