#5F4ECA#5F4ECA

#5F4ECA is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.2% C 0.184 H 284.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5F4ECA
RGBrgb(95, 78, 202)
HSLhsl(248, 54%, 55%)
HSVhsv(248, 61%, 79%)
CMYKcmyk(53%, 61.4%, 0%, 20.8%)
CIE-LABlab(41.45, 40.06, -62.39)
CIE-LCHlch(41.45, 74.14, 302.70°)
OKLaboklab(51.2% 0.0447 -0.1789)
OKLCHoklch(51.2% 0.184 284)
XYZxyz(18.1011, 12.1449, 57.2561)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4ECA #B9CA4E
analogous
#4E7BCA #5F4ECA #9D4ECA
triadic
#5F4ECA #CA5F4E #4ECA5F
tetradic
#5F4ECA #CA4E7B #B9CA4E #4ECA9D
square
#5F4ECA #CA4E7B #B9CA4E #4ECA9D
split-complementary
#5F4ECA #CA9D4E #7BCA4E
monochromatic
#302479 #4332A8 #5F4ECA #8A7DD8 #B4ACE6

Accessibility & contrast

On white

6.12
#5F4ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5F4ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4ECA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4ECA#FFFFFF#000000##FFFFFF
##5F4ECA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#326C85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4eca;
/* rgb */ color: rgb(95, 78, 202);
/* oklch */ color: oklch(51.2% 0.184 284.0);
Tailwind
colors: {
  custom: {
    50: '#9580db',
    500: '#5f4eca',
    950: '#000000',
  },
}
SCSS
$custom: #5f4eca;
$custom-light: #9580db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4eca",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 248.226,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51197,
    "c": 0.1844,
    "h": 284
  },
  "luminance": 0.12146
}

Semantic roles & 50–950 ramp

primary
#5F4ECA
secondary
#CDD4A0
accent
#DD4BC9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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