#5F4BC9#5F4BC9

#5F4BC9 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.6% C 0.187 H 284.8°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5F4BC9
RGBrgb(95, 75, 201)
HSLhsl(250, 54%, 54%)
HSVhsv(250, 63%, 79%)
CMYKcmyk(52.7%, 62.7%, 0%, 21.2%)
CIE-LABlab(40.70, 41.51, -63.01)
CIE-LCHlch(40.70, 75.46, 303.38°)
OKLaboklab(50.63% 0.0477 -0.1808)
OKLCHoklch(50.63% 0.187 284.8)
XYZxyz(17.7748, 11.6811, 56.5651)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BC9 #B5C94B
analogous
#4B76C9 #5F4BC9 #9E4BC9
triadic
#5F4BC9 #C95F4B #4BC95F
tetradic
#5F4BC9 #C94B76 #B5C94B #4BC99E
square
#5F4BC9 #C94B76 #B5C94B #4BC99E
split-complementary
#5F4BC9 #C99E4B #76C94B
monochromatic
#312376 #4432A5 #5F4BC9 #897AD7 #B3A9E5

Accessibility & contrast

On white

6.29
#5F4BC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5F4BC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BC9
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BC9#FFFFFF#000000##FFFFFF
##5F4BC91.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#346A83
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4bc9;
/* rgb */ color: rgb(95, 75, 201);
/* oklch */ color: oklch(50.6% 0.187 284.8);
Tailwind
colors: {
  custom: {
    50: '#957eda',
    500: '#5f4bc9',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bc9;
$custom-light: #957eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bc9",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 201
  },
  "hsl": {
    "h": 249.524,
    "s": 53.846,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50633,
    "c": 0.18696,
    "h": 284.8
  },
  "luminance": 0.11682
}

Semantic roles & 50–950 ramp

primary
#5F4BC9
secondary
#CAD39D
accent
#DD4BC6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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