#7F87F5#7F87F5

#7F87F5 is a light, vivid blue. Relative luminance 0.284; OKLCH L 66.7% C 0.161 H 277.9°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#7F87F5
RGBrgb(127, 135, 245)
HSLhsl(236, 86%, 73%)
HSVhsv(236, 48%, 96%)
CMYKcmyk(48.2%, 44.9%, 0%, 3.9%)
CIE-LABlab(60.28, 25.79, -56.24)
CIE-LCHlch(60.28, 61.87, 294.63°)
OKLaboklab(66.75% 0.0223 -0.1596)
OKLCHoklch(66.75% 0.161 277.9)
XYZxyz(33.8927, 28.4307, 90.0703)
Luminance0.2843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F87F5 #F5ED7F
analogous
#7FC2F5 #7F87F5 #B27FF5
triadic
#7F87F5 #F57F87 #87F57F
tetradic
#7F87F5 #F57FC2 #F5ED7F #7FF5B2
square
#7F87F5 #F57FC2 #F5ED7F #7FF5B2
split-complementary
#7F87F5 #F5B27F #C2F57F
monochromatic
#1221E8 #4652F1 #7F87F5 #B8BCF9 #E3E4FD

Accessibility & contrast

On white

3.14
#7F87F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#7F87F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F87F5
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F87F5#FFFFFF#000000##000000
##7F87F51.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5996F9
Deuteranopia (green-blind)
#4F8DF3
Tritanopia (blue-blind)
#529EB2
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7f87f5;
/* rgb */ color: rgb(127, 135, 245);
/* oklch */ color: oklch(66.7% 0.161 277.9);
Tailwind
colors: {
  custom: {
    50: '#aaa9f9',
    500: '#7f87f5',
    950: '#000000',
  },
}
SCSS
$custom: #7f87f5;
$custom-light: #aaa9f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f87f5",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 235.932,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.66746,
    "c": 0.16119,
    "h": 277.9
  },
  "luminance": 0.28433
}

Semantic roles & 50–950 ramp

primary
#7F87F5
secondary
#F5F3D6
accent
#D303E2
background
#FAFAFF
surface
#F5F4FF
border
#CFCED7
text
#111017
muted
#807F85

Preview Lab

Preview with #7F87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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