#5F5AFF#5F5AFF

#5F5AFF is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.4% C 0.237 H 277.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5F5AFF
RGBrgb(95, 90, 255)
HSLhsl(242, 100%, 68%)
HSVhsv(242, 65%, 100%)
CMYKcmyk(62.7%, 64.7%, 0%, 0%)
CIE-LABlab(48.21, 49.53, -81.38)
CIE-LCHlch(48.21, 95.27, 301.33°)
OKLaboklab(57.42% 0.0299 -0.2346)
OKLCHoklch(57.42% 0.237 277.3)
XYZxyz(26.4196, 16.9631, 96.4703)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AFF #FAFF5A
analogous
#5AA8FF #5F5AFF #B15AFF
triadic
#5F5AFF #FF5F5A #5AFF5F
tetradic
#5F5AFF #FF5AA8 #FAFF5A #5AFFB1
square
#5F5AFF #FF5AA8 #FAFF5A #5AFFB1
split-complementary
#5F5AFF #FFB15A #A8FF5A
monochromatic
#0700DF #241DFF #5F5AFF #9A97FF #D6D4FF

Accessibility & contrast

On white

4.78
#5F5AFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5F5AFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AFF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AFF#FFFFFF#000000##FFFFFF
##5F5AFF1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#006BFC
Tritanopia (blue-blind)
#0085A5
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5aff;
/* rgb */ color: rgb(95, 90, 255);
/* oklch */ color: oklch(57.4% 0.237 277.3);
Tailwind
colors: {
  custom: {
    50: '#9d89ff',
    500: '#5f5aff',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aff;
$custom-light: #9d89ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aff",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 255
  },
  "hsl": {
    "h": 241.818,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.57418,
    "c": 0.23653,
    "h": 277.3
  },
  "luminance": 0.16965
}

Semantic roles & 50–950 ramp

primary
#5F5AFF
secondary
#F2F4C1
accent
#E600DF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5F5AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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