#5F4FCE#5F4FCE

#5F4FCE is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.7% C 0.188 H 283.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5F4FCE
RGBrgb(95, 79, 206)
HSLhsl(248, 56%, 56%)
HSVhsv(248, 62%, 81%)
CMYKcmyk(53.9%, 61.7%, 0%, 19.2%)
CIE-LABlab(41.97, 40.69, -63.85)
CIE-LCHlch(41.97, 75.71, 302.51°)
OKLaboklab(51.67% 0.0434 -0.1832)
OKLCHoklch(51.67% 0.188 283.3)
XYZxyz(18.6525, 12.4800, 59.8066)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FCE #BECE4F
analogous
#4F7ECE #5F4FCE #9E4FCE
triadic
#5F4FCE #CE5F4F #4FCE5F
tetradic
#5F4FCE #CE4F7E #BECE4F #4FCE9E
square
#5F4FCE #CE4F7E #BECE4F #4FCE9E
split-complementary
#5F4FCE #CE9E4F #7ECE4F
monochromatic
#2F237F #4131AF #5F4FCE #8B7FDB #B6AFE9

Accessibility & contrast

On white

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

On black

3.50
#5F4FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F4FCE#FFFFFF#000000##FFFFFF
##5F4FCE1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#2E6E87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4fce;
/* rgb */ color: rgb(95, 79, 206);
/* oklch */ color: oklch(51.7% 0.188 283.3);
Tailwind
colors: {
  custom: {
    50: '#9681de',
    500: '#5f4fce',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fce;
$custom-light: #9681de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fce",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 206
  },
  "hsl": {
    "h": 247.559,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51674,
    "c": 0.18828,
    "h": 283.3
  },
  "luminance": 0.12481
}

Semantic roles & 50–950 ramp

primary
#5F4FCE
secondary
#D0D7A2
accent
#E048CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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