#5F4EDA#5F4EDA

#5F4EDA is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.5% C 0.205 H 282.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5F4EDA
RGBrgb(95, 78, 218)
HSLhsl(247, 65%, 58%)
HSVhsv(247, 64%, 85%)
CMYKcmyk(56.4%, 64.2%, 0%, 14.5%)
CIE-LABlab(42.68, 44.95, -69.58)
CIE-LCHlch(42.68, 82.84, 302.86°)
OKLaboklab(52.48% 0.0434 -0.2001)
OKLCHoklch(52.48% 0.205 282.2)
XYZxyz(20.0947, 12.9423, 67.7553)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EDA #C9DA4E
analogous
#4E83DA #5F4EDA #A54EDA
triadic
#5F4EDA #DA5F4E #4EDA5F
tetradic
#5F4EDA #DA4E83 #C9DA4E #4EDAA5
square
#5F4EDA #DA4E83 #C9DA4E #4EDAA5
split-complementary
#5F4EDA #DAA54E #83DA4E
monochromatic
#2C1E90 #3B29C2 #5F4EDA #8D81E5 #BBB3EF

Accessibility & contrast

On white

5.85
#5F4EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5F4EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EDA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EDA#FFFFFF#000000##FFFFFF
##5F4EDA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#1D718D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4eda;
/* rgb */ color: rgb(95, 78, 218);
/* oklch */ color: oklch(52.5% 0.205 282.2);
Tailwind
colors: {
  custom: {
    50: '#9881e6',
    500: '#5f4eda',
    950: '#000000',
  },
}
SCSS
$custom: #5f4eda;
$custom-light: #9881e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4eda",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 247.286,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52479,
    "c": 0.20471,
    "h": 282.2
  },
  "luminance": 0.12944
}

Semantic roles & 50–950 ramp

primary
#5F4EDA
secondary
#D7DEA6
accent
#E83FD4
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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