#5F4CEB#5F4CEB

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

Color values

HEX#5F4CEB
RGBrgb(95, 76, 235)
HSLhsl(247, 80%, 61%)
HSVhsv(247, 68%, 92%)
CMYKcmyk(59.6%, 67.7%, 0%, 7.8%)
CIE-LABlab(43.65, 51.24, -77.65)
CIE-LCHlch(43.65, 93.03, 303.42°)
OKLaboklab(53.61% 0.0429 -0.2237)
OKLCHoklch(53.61% 0.228 280.9)
XYZxyz(22.2944, 13.5983, 80.0311)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CEB #D8EB4C
analogous
#4C88EB #5F4CEB #AE4CEB
triadic
#5F4CEB #EB5F4C #4CEB5F
tetradic
#5F4CEB #EB4C88 #D8EB4C #4CEBAE
square
#5F4CEB #EB4C88 #D8EB4C #4CEBAE
split-complementary
#5F4CEB #EBAE4C #88EB4C
monochromatic
#2513AA #3119E1 #5F4CEB #9083F1 #C1BAF7

Accessibility & contrast

On white

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

On black

3.72
#5F4CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F4CEB#FFFFFF#000000##FFFFFF
##5F4CEB1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DF0
Deuteranopia (green-blind)
#0061E8
Tritanopia (blue-blind)
#007696
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f4ceb;
/* rgb */ color: rgb(95, 76, 235);
/* oklch */ color: oklch(53.6% 0.228 280.9);
Tailwind
colors: {
  custom: {
    50: '#9b80f3',
    500: '#5f4ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ceb;
$custom-light: #9b80f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ceb",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 247.17,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53613,
    "c": 0.2278,
    "h": 280.9
  },
  "luminance": 0.136
}

Semantic roles & 50–950 ramp

primary
#5F4CEB
secondary
#E0E7AB
accent
#DC09C3
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F4CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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