#5F4ACC#5F4ACC

#5F4ACC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.7% C 0.192 H 284.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5F4ACC
RGBrgb(95, 74, 204)
HSLhsl(250, 56%, 55%)
HSVhsv(250, 64%, 80%)
CMYKcmyk(53.4%, 63.7%, 0%, 20%)
CIE-LABlab(40.72, 43.00, -64.73)
CIE-LCHlch(40.72, 77.71, 303.60°)
OKLaboklab(50.71% 0.0484 -0.1858)
OKLCHoklch(50.71% 0.192 284.6)
XYZxyz(18.0639, 11.6891, 58.4194)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4ACC #B7CC4A
analogous
#4A76CC #5F4ACC #A04ACC
triadic
#5F4ACC #CC5F4A #4ACC5F
tetradic
#5F4ACC #CC4A76 #B7CC4A #4ACCA0
square
#5F4ACC #CC4A76 #B7CC4A #4ACCA0
split-complementary
#5F4ACC #CCA04A #76CC4A
monochromatic
#302279 #4330A9 #5F4ACC #897AD9 #B3A9E7

Accessibility & contrast

On white

6.29
#5F4ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5F4ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4ACC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4ACC#FFFFFF#000000##FFFFFF
##5F4ACC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#316A84
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4acc;
/* rgb */ color: rgb(95, 74, 204);
/* oklch */ color: oklch(50.7% 0.192 284.6);
Tailwind
colors: {
  custom: {
    50: '#967edc',
    500: '#5f4acc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4acc;
$custom-light: #967edc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4acc",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 249.692,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50714,
    "c": 0.19202,
    "h": 284.6
  },
  "luminance": 0.1169
}

Semantic roles & 50–950 ramp

primary
#5F4ACC
secondary
#CCD49D
accent
#DF48C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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