#5F4FB2#5F4FB2

#5F4FB2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.6% C 0.151 H 286.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5F4FB2
RGBrgb(95, 79, 178)
HSLhsl(250, 39%, 50%)
HSVhsv(250, 56%, 70%)
CMYKcmyk(46.6%, 55.6%, 0%, 30.2%)
CIE-LABlab(39.98, 32.17, -50.74)
CIE-LCHlch(39.98, 60.08, 302.37°)
OKLaboklab(49.58% 0.0441 -0.1447)
OKLCHoklch(49.58% 0.151 286.9)
XYZxyz(15.5489, 11.2386, 43.4608)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FB2 #A2B24F
analogous
#4F70B2 #5F4FB2 #904FB2
triadic
#5F4FB2 #B25F4F #4FB25F
tetradic
#5F4FB2 #B24F70 #A2B24F #4FB290
square
#5F4FB2 #B24F70 #A2B24F #4FB290
split-complementary
#5F4FB2 #B2904F #70B24F
monochromatic
#31295E #483C88 #5F4FB2 #867AC5 #ACA4D7

Accessibility & contrast

On white

6.47
#5F4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5F4FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FB2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FB2#FFFFFF#000000##FFFFFF
##5F4FB21.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1761B5
Deuteranopia (green-blind)
#165BB0
Tritanopia (blue-blind)
#446579
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f4fb2;
/* rgb */ color: rgb(95, 79, 178);
/* oklch */ color: oklch(49.6% 0.151 286.9);
Tailwind
colors: {
  custom: {
    50: '#9281ca',
    500: '#5f4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fb2;
$custom-light: #9281ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fb2",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 249.697,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49579,
    "c": 0.15122,
    "h": 286.9
  },
  "luminance": 0.11239
}

Semantic roles & 50–950 ramp

primary
#5F4FB2
secondary
#BDC498
accent
#CF59BC
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5F4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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