#5F4FE3#5F4FE3

#5F4FE3 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.4% C 0.215 H 281.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5F4FE3
RGBrgb(95, 79, 227)
HSLhsl(246, 73%, 60%)
HSVhsv(246, 65%, 89%)
CMYKcmyk(58.1%, 65.2%, 0%, 11%)
CIE-LABlab(43.61, 47.13, -73.19)
CIE-LCHlch(43.61, 87.05, 302.78°)
OKLaboklab(53.38% 0.0415 -0.2106)
OKLCHoklch(53.38% 0.215 281.2)
XYZxyz(21.3761, 13.5695, 74.1509)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FE3 #D3E34F
analogous
#4F89E3 #5F4FE3 #A94FE3
triadic
#5F4FE3 #E35F4F #4FE35F
tetradic
#5F4FE3 #E34F89 #D3E34F #4FE3A9
square
#5F4FE3 #E34F89 #D3E34F #4FE3A9
split-complementary
#5F4FE3 #E3A94F #89E34F
monochromatic
#28199E #3522D3 #5F4FE3 #8F84EB #BFB9F4

Accessibility & contrast

On white

5.65
#5F4FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5F4FE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FE3
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FE3#FFFFFF#000000##FFFFFF
##5F4FE31.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE8
Deuteranopia (green-blind)
#0062E0
Tritanopia (blue-blind)
#017592
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f4fe3;
/* rgb */ color: rgb(95, 79, 227);
/* oklch */ color: oklch(53.4% 0.215 281.2);
Tailwind
colors: {
  custom: {
    50: '#9981ed',
    500: '#5f4fe3',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fe3;
$custom-light: #9981ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fe3",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 227
  },
  "hsl": {
    "h": 246.486,
    "s": 72.549,
    "l": 60
  },
  "oklch": {
    "l": 0.53378,
    "c": 0.2147,
    "h": 281.2
  },
  "luminance": 0.13571
}

Semantic roles & 50–950 ramp

primary
#5F4FE3
secondary
#DDE3AA
accent
#EF39DC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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