#5F5ECA#5F5ECA

#5F5ECA is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.0% C 0.163 H 279.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F5ECA
RGBrgb(95, 94, 202)
HSLhsl(241, 50%, 58%)
HSVhsv(241, 53%, 79%)
CMYKcmyk(53%, 53.5%, 0%, 20.8%)
CIE-LABlab(45.22, 30.40, -56.27)
CIE-LCHlch(45.22, 63.96, 298.38°)
OKLaboklab(53.99% 0.0279 -0.1608)
OKLCHoklch(53.99% 0.163 279.8)
XYZxyz(19.3794, 14.7014, 57.6821)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5ECA #C9CA5E
analogous
#5E93CA #5F5ECA #955ECA
triadic
#5F5ECA #CA5F5E #5ECA5F
tetradic
#5F5ECA #CA5E93 #C9CA5E #5ECA95
square
#5F5ECA #CA5E93 #C9CA5E #5ECA95
split-complementary
#5F5ECA #CA955E #93CA5E
monochromatic
#2C2B83 #3B3AB1 #5F5ECA #8D8CD9 #BBBAE8

Accessibility & contrast

On white

5.33
#5F5ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5F5ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5ECA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5ECA#FFFFFF#000000##FFFFFF
##5F5ECA1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206FCE
Deuteranopia (green-blind)
#0C67C8
Tritanopia (blue-blind)
#30768B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5eca;
/* rgb */ color: rgb(95, 94, 202);
/* oklch */ color: oklch(54.0% 0.163 279.8);
Tailwind
colors: {
  custom: {
    50: '#948bdb',
    500: '#5f5eca',
    950: '#000000',
  },
}
SCSS
$custom: #5f5eca;
$custom-light: #948bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5eca",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 240.556,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.5399,
    "c": 0.16324,
    "h": 279.8
  },
  "luminance": 0.14703
}

Semantic roles & 50–950 ramp

primary
#5F5ECA
secondary
#D7D7AC
accent
#DA4ED9
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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