#5F4AEB#5F4AEB

#5F4AEB is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.3% C 0.230 H 281.1°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5F4AEB
RGBrgb(95, 74, 235)
HSLhsl(248, 80%, 61%)
HSVhsv(248, 69%, 92%)
CMYKcmyk(59.6%, 68.5%, 0%, 7.8%)
CIE-LABlab(43.25, 52.34, -78.30)
CIE-LCHlch(43.25, 94.18, 303.76°)
OKLaboklab(53.33% 0.0444 -0.2256)
OKLCHoklch(53.33% 0.23 281.1)
XYZxyz(22.1588, 13.3270, 79.9859)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4AEB #D6EB4A
analogous
#4A85EB #5F4AEB #AF4AEB
triadic
#5F4AEB #EB5F4A #4AEB5F
tetradic
#5F4AEB #EB4A85 #D6EB4A #4AEBAF
square
#5F4AEB #EB4A85 #D6EB4A #4AEBAF
split-complementary
#5F4AEB #EBAF4A #85EB4A
monochromatic
#2613A8 #3319DF #5F4AEB #9081F1 #C0B8F7

Accessibility & contrast

On white

5.73
#5F4AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5F4AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4AEB
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4AEB#FFFFFF#000000##FFFFFF
##5F4AEB1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF0
Deuteranopia (green-blind)
#0060E8
Tritanopia (blue-blind)
#007595
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f4aeb;
/* rgb */ color: rgb(95, 74, 235);
/* oklch */ color: oklch(53.3% 0.230 281.1);
Tailwind
colors: {
  custom: {
    50: '#9b7ef3',
    500: '#5f4aeb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4aeb;
$custom-light: #9b7ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4aeb",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 235
  },
  "hsl": {
    "h": 247.826,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53326,
    "c": 0.22997,
    "h": 281.1
  },
  "luminance": 0.13329
}

Semantic roles & 50–950 ramp

primary
#5F4AEB
secondary
#DFE7AA
accent
#DC09C1
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F4AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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