#5F7FE7#5F7FE7

#5F7FE7 is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.3% C 0.161 H 268.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5F7FE7
RGBrgb(95, 127, 231)
HSLhsl(226, 74%, 64%)
HSVhsv(226, 59%, 91%)
CMYKcmyk(58.9%, 45%, 0%, 9.4%)
CIE-LABlab(55.46, 19.55, -56.27)
CIE-LCHlch(55.46, 59.57, 289.16°)
OKLaboklab(62.31% -0.004 -0.1605)
OKLCHoklch(62.31% 0.161 268.6)
XYZxyz(26.7276, 23.3790, 78.6899)
Luminance0.2338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FE7 #E7C75F
analogous
#5FC3E7 #5F7FE7 #835FE7
triadic
#5F7FE7 #E75F7F #7FE75F
tetradic
#5F7FE7 #E75FC3 #E7C75F #5FE783
square
#5F7FE7 #E75FC3 #E7C75F #5FE783
split-complementary
#5F7FE7 #E7835F #C3E75F
monochromatic
#1B3EB1 #2A54DF #5F7FE7 #94AAEF #C9D4F7

Accessibility & contrast

On white

3.70
#5F7FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#5F7FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FE7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FE7#FFFFFF#000000##000000
##5F7FE71.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8BEB
Deuteranopia (green-blind)
#3A7FE5
Tritanopia (blue-blind)
#0096A8
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f7fe7;
/* rgb */ color: rgb(95, 127, 231);
/* oklch */ color: oklch(62.3% 0.161 268.6);
Tailwind
colors: {
  custom: {
    50: '#97a3ef',
    500: '#5f7fe7',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fe7;
$custom-light: #97a3ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fe7",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 231
  },
  "hsl": {
    "h": 225.882,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62308,
    "c": 0.16057,
    "h": 268.6
  },
  "luminance": 0.23381
}

Semantic roles & 50–950 ramp

primary
#5F7FE7
secondary
#E9DEB9
accent
#A70FD6
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5F7FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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