#7F87B5#7F87B5

#7F87B5 is a light, moderate blue. Relative luminance 0.252; OKLCH L 63.4% C 0.070 H 276.6°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7F87B5
RGBrgb(127, 135, 181)
HSLhsl(231, 27%, 60%)
HSVhsv(231, 30%, 71%)
CMYKcmyk(29.8%, 25.4%, 0%, 29%)
CIE-LABlab(57.25, 7.84, -25.09)
CIE-LCHlch(57.25, 26.28, 287.34°)
OKLaboklab(63.43% 0.008 -0.0693)
OKLCHoklch(63.43% 0.07 276.6)
XYZxyz(25.7546, 25.1754, 47.2095)
Luminance0.2518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F87B5 #B5AD7F
analogous
#7FA2B5 #7F87B5 #927FB5
triadic
#7F87B5 #B57F87 #87B57F
tetradic
#7F87B5 #B57FA2 #B5AD7F #7FB592
square
#7F87B5 #B57FA2 #B5AD7F #7FB592
split-complementary
#7F87B5 #B5927F #A2B57F
monochromatic
#444B76 #5A649C #7F87B5 #A6ABCB #CDD0E2

Accessibility & contrast

On white

3.48
#7F87B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#7F87B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F87B5
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F87B5#FFFFFF#000000##000000
##7F87B51.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#798CB7
Deuteranopia (green-blind)
#7688B4
Tritanopia (blue-blind)
#719097
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7f87b5;
/* rgb */ color: rgb(127, 135, 181);
/* oklch */ color: oklch(63.4% 0.070 276.6);
Tailwind
colors: {
  custom: {
    50: '#a5a9cb',
    500: '#7f87b5',
    950: '#000000',
  },
}
SCSS
$custom: #7f87b5;
$custom-light: #a5a9cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f87b5",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 181
  },
  "hsl": {
    "h": 231.111,
    "s": 26.733,
    "l": 60.392
  },
  "oklch": {
    "l": 0.63427,
    "c": 0.06979,
    "h": 276.6
  },
  "luminance": 0.25176
}

Semantic roles & 50–950 ramp

primary
#7F87B5
secondary
#D2CFBE
accent
#9640A5
background
#FAFAFC
surface
#F4F4F8
border
#CECED1
text
#0F1013
muted
#7F7F82

Preview Lab

Preview with #7F87B5

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

Preview Lab → · Contrast checker → · Palette generator →

#7F87B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva