#7F87D4#7F87D4

#7F87D4 is a light, moderate blue. Relative luminance 0.266; OKLCH L 64.9% C 0.115 H 278.2°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7F87D4
RGBrgb(127, 135, 212)
HSLhsl(234, 50%, 66%)
HSVhsv(234, 40%, 83%)
CMYKcmyk(40.1%, 36.3%, 0%, 16.9%)
CIE-LABlab(58.59, 16.22, -40.53)
CIE-LCHlch(58.59, 43.66, 291.81°)
OKLaboklab(64.91% 0.0163 -0.1138)
OKLCHoklch(64.91% 0.115 278.2)
XYZxyz(29.2965, 26.5922, 65.8638)
Luminance0.2659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F87D4 #D4CC7F
analogous
#7FB2D4 #7F87D4 #A27FD4
triadic
#7F87D4 #D47F87 #87D47F
tetradic
#7F87D4 #D47FB2 #D4CC7F #7FD4A2
square
#7F87D4 #D47FB2 #D4CC7F #7FD4A2
split-complementary
#7F87D4 #D4A27F #B2D47F
monochromatic
#3641A2 #515CC5 #7F87D4 #ADB2E3 #DBDDF3

Accessibility & contrast

On white

3.32
#7F87D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#7F87D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F87D4
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F87D4#FFFFFF#000000##000000
##7F87D41.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D90D7
Deuteranopia (green-blind)
#678AD2
Tritanopia (blue-blind)
#6596A3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7f87d4;
/* rgb */ color: rgb(127, 135, 212);
/* oklch */ color: oklch(64.9% 0.115 278.2);
Tailwind
colors: {
  custom: {
    50: '#a7a9e1',
    500: '#7f87d4',
    950: '#000000',
  },
}
SCSS
$custom: #7f87d4;
$custom-light: #a7a9e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f87d4",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 212
  },
  "hsl": {
    "h": 234.353,
    "s": 49.708,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64914,
    "c": 0.11495,
    "h": 278.2
  },
  "luminance": 0.26593
}

Semantic roles & 50–950 ramp

primary
#7F87D4
secondary
#E5E3CA
accent
#AF28BD
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#100F15
muted
#7F7F83

Preview Lab

Preview with #7F87D4

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

Preview Lab → · Contrast checker → · Palette generator →

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