#5F4CDB#5F4CDB

#5F4CDB is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.3% C 0.208 H 282.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5F4CDB
RGBrgb(95, 76, 219)
HSLhsl(248, 67%, 58%)
HSVhsv(248, 65%, 86%)
CMYKcmyk(56.6%, 65.3%, 0%, 14.1%)
CIE-LABlab(42.33, 46.40, -70.72)
CIE-LCHlch(42.33, 84.58, 303.27°)
OKLaboklab(52.25% 0.045 -0.2034)
OKLCHoklch(52.25% 0.208 282.5)
XYZxyz(20.0860, 12.7150, 68.3999)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CDB #C8DB4C
analogous
#4C80DB #5F4CDB #A64CDB
triadic
#5F4CDB #DB5F4C #4CDB5F
tetradic
#5F4CDB #DB4C80 #C8DB4C #4CDBA6
square
#5F4CDB #DB4C80 #C8DB4C #4CDBA6
split-complementary
#5F4CDB #DBA64C #80DB4C
monochromatic
#2C1D90 #3C27C3 #5F4CDB #8D7FE5 #BAB2EF

Accessibility & contrast

On white

5.93
#5F4CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5F4CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CDB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CDB#FFFFFF#000000##FFFFFF
##5F4CDB1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DF
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#1C708D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f4cdb;
/* rgb */ color: rgb(95, 76, 219);
/* oklch */ color: oklch(52.3% 0.208 282.5);
Tailwind
colors: {
  custom: {
    50: '#987fe7',
    500: '#5f4cdb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cdb;
$custom-light: #987fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cdb",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 247.972,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52253,
    "c": 0.20832,
    "h": 282.5
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#5F4CDB
secondary
#D6DEA5
accent
#E93ED3
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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