#5F4DD2#5F4DD2

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

Color values

HEX#5F4DD2
RGBrgb(95, 77, 210)
HSLhsl(248, 60%, 56%)
HSVhsv(248, 63%, 82%)
CMYKcmyk(54.8%, 63.3%, 0%, 17.6%)
CIE-LABlab(41.83, 43.08, -66.37)
CIE-LCHlch(41.83, 79.13, 302.99°)
OKLaboklab(51.67% 0.045 -0.1906)
OKLCHoklch(51.67% 0.196 283.3)
XYZxyz(19.0025, 12.3927, 62.3510)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DD2 #C0D24D
analogous
#4D7ED2 #5F4DD2 #A24DD2
triadic
#5F4DD2 #D25F4D #4DD25F
tetradic
#5F4DD2 #D24D7E #C0D24D #4DD2A2
square
#5F4DD2 #D24D7E #C0D24D #4DD2A2
split-complementary
#5F4DD2 #D2A24D #7ED24D
monochromatic
#2F2183 #402EB4 #5F4DD2 #8B7EDE #B7AFEB

Accessibility & contrast

On white

6.04
#5F4DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F4DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DD2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DD2#FFFFFF#000000##FFFFFF
##5F4DD21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#2A6E88
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4dd2;
/* rgb */ color: rgb(95, 77, 210);
/* oklch */ color: oklch(51.7% 0.196 283.3);
Tailwind
colors: {
  custom: {
    50: '#9780e1',
    500: '#5f4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dd2;
$custom-light: #9780e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dd2",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 248.12,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51671,
    "c": 0.19588,
    "h": 283.3
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#5F4DD2
secondary
#D1D9A2
accent
#E345CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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