#5F4CD6#5F4CD6

#5F4CD6 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.8% C 0.202 H 283.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD6
RGBrgb(95, 76, 214)
HSLhsl(248, 63%, 57%)
HSVhsv(248, 64%, 84%)
CMYKcmyk(55.6%, 64.5%, 0%, 16.1%)
CIE-LABlab(41.93, 44.88, -68.51)
CIE-LCHlch(41.93, 81.90, 303.23°)
OKLaboklab(51.84% 0.0456 -0.1969)
OKLCHoklch(51.84% 0.202 283)
XYZxyz(19.4376, 12.4556, 64.9852)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD6 #C3D64C
analogous
#4C7ED6 #5F4CD6 #A44CD6
triadic
#5F4CD6 #D65F4C #4CD65F
tetradic
#5F4CD6 #D64C7E #C3D64C #4CD6A4
square
#5F4CD6 #D64C7E #C3D64C #4CD6A4
split-complementary
#5F4CD6 #D6A44C #7ED64C
monochromatic
#2E1F88 #3E2BBA #5F4CD6 #8C7EE1 #B8B0ED

Accessibility & contrast

On white

6.01
#5F4CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5F4CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD6
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD6#FFFFFF#000000##FFFFFF
##5F4CD61.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DA
Deuteranopia (green-blind)
#005ED3
Tritanopia (blue-blind)
#246F8A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4cd6;
/* rgb */ color: rgb(95, 76, 214);
/* oklch */ color: oklch(51.8% 0.202 283.0);
Tailwind
colors: {
  custom: {
    50: '#977fe4',
    500: '#5f4cd6',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd6;
$custom-light: #977fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd6",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 248.261,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5184,
    "c": 0.20212,
    "h": 283
  },
  "luminance": 0.12457
}

Semantic roles & 50–950 ramp

primary
#5F4CD6
secondary
#D3DBA3
accent
#E642CF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5F4CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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