#5F4FD2#5F4FD2

#5F4FD2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 52.0% C 0.193 H 282.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5F4FD2
RGBrgb(95, 79, 210)
HSLhsl(247, 59%, 57%)
HSVhsv(247, 62%, 82%)
CMYKcmyk(54.8%, 62.4%, 0%, 17.6%)
CIE-LABlab(42.27, 41.92, -65.66)
CIE-LCHlch(42.27, 77.90, 302.56°)
OKLaboklab(51.99% 0.0432 -0.1885)
OKLCHoklch(51.99% 0.193 282.9)
XYZxyz(19.1446, 12.6769, 62.3983)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FD2 #C2D24F
analogous
#4F81D2 #5F4FD2 #A14FD2
triadic
#5F4FD2 #D25F4F #4FD25F
tetradic
#5F4FD2 #D24F81 #C2D24F #4FD2A1
square
#5F4FD2 #D24F81 #C2D24F #4FD2A1
split-complementary
#5F4FD2 #D2A14F #81D24F
monochromatic
#2E2285 #3F2EB5 #5F4FD2 #8B80DE #B8B0EB

Accessibility & contrast

On white

5.94
#5F4FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5F4FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FD2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FD2#FFFFFF#000000##FFFFFF
##5F4FD21.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#296F89
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f4fd2;
/* rgb */ color: rgb(95, 79, 210);
/* oklch */ color: oklch(52.0% 0.193 282.9);
Tailwind
colors: {
  custom: {
    50: '#9681e1',
    500: '#5f4fd2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fd2;
$custom-light: #9681e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fd2",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 247.328,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51991,
    "c": 0.1934,
    "h": 282.9
  },
  "luminance": 0.12678
}

Semantic roles & 50–950 ramp

primary
#5F4FD2
secondary
#D3D9A4
accent
#E245CF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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