#5F4CD3#5F4CD3

#5F4CD3 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.6% C 0.198 H 283.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD3
RGBrgb(95, 76, 211)
HSLhsl(248, 61%, 56%)
HSVhsv(248, 64%, 83%)
CMYKcmyk(55%, 64%, 0%, 17.3%)
CIE-LABlab(41.69, 43.97, -67.17)
CIE-LCHlch(41.69, 80.28, 303.21°)
OKLaboklab(51.59% 0.0459 -0.193)
OKLCHoklch(51.59% 0.198 283.4)
XYZxyz(19.0580, 12.3038, 62.9860)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD3 #C0D34C
analogous
#4C7DD3 #5F4CD3 #A34CD3
triadic
#5F4CD3 #D35F4C #4CD35F
tetradic
#5F4CD3 #D34C7D #C0D34C #4CD3A3
square
#5F4CD3 #D34C7D #C0D34C #4CD3A3
split-complementary
#5F4CD3 #D3A34C #7DD34C
monochromatic
#2F2084 #402DB5 #5F4CD3 #8B7DDF #B7AEEB

Accessibility & contrast

On white

6.07
#5F4CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5F4CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD3
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD3#FFFFFF#000000##FFFFFF
##5F4CD31.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D7
Deuteranopia (green-blind)
#005ED0
Tritanopia (blue-blind)
#286E89
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4cd3;
/* rgb */ color: rgb(95, 76, 211);
/* oklch */ color: oklch(51.6% 0.198 283.4);
Tailwind
colors: {
  custom: {
    50: '#977fe1',
    500: '#5f4cd3',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd3;
$custom-light: #977fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd3",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 248.444,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51594,
    "c": 0.19836,
    "h": 283.4
  },
  "luminance": 0.12305
}

Semantic roles & 50–950 ramp

primary
#5F4CD3
secondary
#D1D9A2
accent
#E444CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #5F4CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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