#5F4BCA#5F4BCA

#5F4BCA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.7% C 0.188 H 284.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5F4BCA
RGBrgb(95, 75, 202)
HSLhsl(249, 55%, 54%)
HSVhsv(249, 63%, 79%)
CMYKcmyk(53%, 62.9%, 0%, 20.8%)
CIE-LABlab(40.78, 41.81, -63.47)
CIE-LCHlch(40.78, 76.00, 303.38°)
OKLaboklab(50.71% 0.0477 -0.1821)
OKLCHoklch(50.71% 0.188 284.7)
XYZxyz(17.8928, 11.7283, 57.1866)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BCA #B6CA4B
analogous
#4B77CA #5F4BCA #9F4BCA
triadic
#5F4BCA #CA5F4B #4BCA5F
tetradic
#5F4BCA #CA4B77 #B6CA4B #4BCA9F
square
#5F4BCA #CA4B77 #B6CA4B #4BCA9F
split-complementary
#5F4BCA #CA9F4B #77CA4B
monochromatic
#302377 #4431A7 #5F4BCA #897AD8 #B3AAE6

Accessibility & contrast

On white

6.28
#5F4BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5F4BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BCA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BCA#FFFFFF#000000##FFFFFF
##5F4BCA1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#336A83
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4bca;
/* rgb */ color: rgb(95, 75, 202);
/* oklch */ color: oklch(50.7% 0.188 284.7);
Tailwind
colors: {
  custom: {
    50: '#967edb',
    500: '#5f4bca',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bca;
$custom-light: #967edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bca",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 249.449,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50712,
    "c": 0.18823,
    "h": 284.7
  },
  "luminance": 0.11729
}

Semantic roles & 50–950 ramp

primary
#5F4BCA
secondary
#CBD39D
accent
#DE4AC7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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