#5F7AF6#5F7AF6

#5F7AF6 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.3% C 0.187 H 270.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5F7AF6
RGBrgb(95, 122, 246)
HSLhsl(229, 89%, 67%)
HSVhsv(229, 61%, 96%)
CMYKcmyk(61.4%, 50.4%, 0%, 3.5%)
CIE-LABlab(55.08, 27.55, -65.24)
CIE-LCHlch(55.08, 70.81, 292.89°)
OKLaboklab(62.31% 0.0027 -0.1869)
OKLCHoklch(62.31% 0.187 270.8)
XYZxyz(28.3078, 23.0034, 90.1192)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7AF6 #F6DB5F
analogous
#5FC5F6 #5F7AF6 #905FF6
triadic
#5F7AF6 #F65F7A #7AF65F
tetradic
#5F7AF6 #F65FC5 #F6DB5F #5FF690
square
#5F7AF6 #F65FC5 #F6DB5F #5FF690
split-complementary
#5F7AF6 #F6905F #C5F65F
monochromatic
#0C2FCF #254AF3 #5F7AF6 #99AAF9 #D3DAFD

Accessibility & contrast

On white

3.75
#5F7AF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5F7AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7AF6
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7AF6#FFFFFF#000000##000000
##5F7AF61.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#338BFA
Deuteranopia (green-blind)
#007DF3
Tritanopia (blue-blind)
#0097AC
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7af6;
/* rgb */ color: rgb(95, 122, 246);
/* oklch */ color: oklch(62.3% 0.187 270.8);
Tailwind
colors: {
  custom: {
    50: '#9aa0fa',
    500: '#5f7af6',
    950: '#000000',
  },
}
SCSS
$custom: #5f7af6;
$custom-light: #9aa0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7af6",
  "rgb": {
    "r": 95,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 229.272,
    "s": 89.349,
    "l": 66.863
  },
  "oklch": {
    "l": 0.62306,
    "c": 0.18695,
    "h": 270.8
  },
  "luminance": 0.23006
}

Semantic roles & 50–950 ramp

primary
#5F7AF6
secondary
#F1E8C0
accent
#BC00E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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