#5F4BC5#5F4BC5

#5F4BC5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.3% C 0.182 H 285.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5F4BC5
RGBrgb(95, 75, 197)
HSLhsl(250, 51%, 53%)
HSVhsv(250, 62%, 77%)
CMYKcmyk(51.8%, 61.9%, 0%, 22.7%)
CIE-LABlab(40.40, 40.30, -61.18)
CIE-LCHlch(40.40, 73.26, 303.37°)
OKLaboklab(50.32% 0.048 -0.1754)
OKLCHoklch(50.32% 0.182 285.3)
XYZxyz(17.3104, 11.4954, 54.1192)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BC5 #B1C54B
analogous
#4B74C5 #5F4BC5 #9C4BC5
triadic
#5F4BC5 #C55F4B #4BC55F
tetradic
#5F4BC5 #C54B74 #B1C54B #4BC59C
square
#5F4BC5 #C54B74 #B1C54B #4BC59C
split-complementary
#5F4BC5 #C59C4B #74C54B
monochromatic
#312471 #45339F #5F4BC5 #8879D4 #B1A8E3

Accessibility & contrast

On white

6.37
#5F4BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5F4BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BC5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BC5#FFFFFF#000000##FFFFFF
##5F4BC51.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#376881
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f4bc5;
/* rgb */ color: rgb(95, 75, 197);
/* oklch */ color: oklch(50.3% 0.182 285.3);
Tailwind
colors: {
  custom: {
    50: '#957ed7',
    500: '#5f4bc5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bc5;
$custom-light: #957ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bc5",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 197
  },
  "hsl": {
    "h": 249.836,
    "s": 51.261,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50317,
    "c": 0.18184,
    "h": 285.3
  },
  "luminance": 0.11496
}

Semantic roles & 50–950 ramp

primary
#5F4BC5
secondary
#C8D09C
accent
#DB4DC4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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