#5F5EDA#5F5EDA

#5F5EDA is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.1% C 0.185 H 278.8°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5F5EDA
RGBrgb(95, 94, 218)
HSLhsl(240, 63%, 61%)
HSVhsv(240, 57%, 85%)
CMYKcmyk(56.4%, 56.9%, 0%, 14.5%)
CIE-LABlab(46.31, 35.47, -63.68)
CIE-LCHlch(46.31, 72.89, 299.12°)
OKLaboklab(55.15% 0.0283 -0.1826)
OKLCHoklch(55.15% 0.185 278.8)
XYZxyz(21.3729, 15.4988, 68.1814)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5EDA #D9DA5E
analogous
#5E9BDA #5F5EDA #9D5EDA
triadic
#5F5EDA #DA5F5E #5EDA5F
tetradic
#5F5EDA #DA5E9B #D9DA5E #5EDA9D
square
#5F5EDA #DA5E9B #D9DA5E #5EDA9D
split-complementary
#5F5EDA #DA9D5E #9BDA5E
monochromatic
#24239A #302FCC #5F5EDA #9090E5 #C2C2F1

Accessibility & contrast

On white

5.12
#5F5EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5F5EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5EDA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5EDA#FFFFFF#000000##FFFFFF
##5F5EDA1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#197B93
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5eda;
/* rgb */ color: rgb(95, 94, 218);
/* oklch */ color: oklch(55.1% 0.185 278.8);
Tailwind
colors: {
  custom: {
    50: '#978ce6',
    500: '#5f5eda',
    950: '#000000',
  },
}
SCSS
$custom: #5f5eda;
$custom-light: #978ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5eda",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 218
  },
  "hsl": {
    "h": 240.484,
    "s": 62.626,
    "l": 61.176
  },
  "oklch": {
    "l": 0.55146,
    "c": 0.1848,
    "h": 278.8
  },
  "luminance": 0.155
}

Semantic roles & 50–950 ramp

primary
#5F5EDA
secondary
#E1E1B3
accent
#CA1BC9
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5F5EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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