#5F4CDA#5F4CDA

#5F4CDA is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.2% C 0.207 H 282.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5F4CDA
RGBrgb(95, 76, 218)
HSLhsl(248, 66%, 58%)
HSVhsv(248, 65%, 85%)
CMYKcmyk(56.4%, 65.1%, 0%, 14.5%)
CIE-LABlab(42.25, 46.09, -70.28)
CIE-LCHlch(42.25, 84.04, 303.26°)
OKLaboklab(52.17% 0.0451 -0.2021)
OKLCHoklch(52.17% 0.207 282.6)
XYZxyz(19.9547, 12.6625, 67.7087)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CDA #C7DA4C
analogous
#4C80DA #5F4CDA #A64CDA
triadic
#5F4CDA #DA5F4C #4CDA5F
tetradic
#5F4CDA #DA4C80 #C7DA4C #4CDAA6
square
#5F4CDA #DA4C80 #C7DA4C #4CDAA6
split-complementary
#5F4CDA #DAA64C #80DA4C
monochromatic
#2C1D8E #3C28C1 #5F4CDA #8C7FE4 #BAB1EF

Accessibility & contrast

On white

5.94
#5F4CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5F4CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CDA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CDA#FFFFFF#000000##FFFFFF
##5F4CDA1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DE
Deuteranopia (green-blind)
#005FD7
Tritanopia (blue-blind)
#1E708C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f4cda;
/* rgb */ color: rgb(95, 76, 218);
/* oklch */ color: oklch(52.2% 0.207 282.6);
Tailwind
colors: {
  custom: {
    50: '#987fe6',
    500: '#5f4cda',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cda;
$custom-light: #987fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cda",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 218
  },
  "hsl": {
    "h": 248.028,
    "s": 65.741,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5217,
    "c": 0.20709,
    "h": 282.6
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#5F4CDA
secondary
#D6DDA4
accent
#E93FD2
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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