#5F4BCB#5F4BCB

#5F4BCB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.8% C 0.190 H 284.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5F4BCB
RGBrgb(95, 75, 203)
HSLhsl(249, 55%, 55%)
HSVhsv(249, 63%, 80%)
CMYKcmyk(53.2%, 63.1%, 0%, 20.4%)
CIE-LABlab(40.86, 42.12, -63.92)
CIE-LCHlch(40.86, 76.55, 303.38°)
OKLaboklab(50.79% 0.0476 -0.1834)
OKLCHoklch(50.79% 0.19 284.5)
XYZxyz(18.0116, 11.7759, 57.8122)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BCB #B7CB4B
analogous
#4B77CB #5F4BCB #9F4BCB
triadic
#5F4BCB #CB5F4B #4BCB5F
tetradic
#5F4BCB #CB4B77 #B7CB4B #4BCB9F
square
#5F4BCB #CB4B77 #B7CB4B #4BCB9F
split-complementary
#5F4BCB #CB9F4B #77CB4B
monochromatic
#302379 #4331A8 #5F4BCB #897AD9 #B3AAE6

Accessibility & contrast

On white

6.26
#5F4BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5F4BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BCB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BCB#FFFFFF#000000##FFFFFF
##5F4BCB1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#326A84
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4bcb;
/* rgb */ color: rgb(95, 75, 203);
/* oklch */ color: oklch(50.8% 0.190 284.5);
Tailwind
colors: {
  custom: {
    50: '#967edc',
    500: '#5f4bcb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bcb;
$custom-light: #967edc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bcb",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 249.375,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50792,
    "c": 0.1895,
    "h": 284.5
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#5F4BCB
secondary
#CCD49E
accent
#DF49C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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