#7F8AFA#7F8AFA

#7F8AFA is a light, vivid blue. Relative luminance 0.296; OKLCH L 67.6% C 0.164 H 276.8°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7F8AFA
RGBrgb(127, 138, 250)
HSLhsl(235, 92%, 74%)
HSVhsv(235, 49%, 98%)
CMYKcmyk(49.2%, 44.8%, 0%, 2%)
CIE-LABlab(61.30, 25.51, -57.36)
CIE-LCHlch(61.30, 62.78, 293.98°)
OKLaboklab(67.61% 0.0195 -0.1629)
OKLCHoklch(67.61% 0.164 276.8)
XYZxyz(35.0908, 29.5891, 94.2862)
Luminance0.2959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8AFA #FAEF7F
analogous
#7FC8FA #7F8AFA #B27FFA
triadic
#7F8AFA #FA7F8A #8AFA7F
tetradic
#7F8AFA #FA7FC8 #FAEF7F #7FFAB2
square
#7F8AFA #FA7FC8 #FAEF7F #7FFAB2
split-complementary
#7F8AFA #FAB27F #C8FA7F
monochromatic
#0A1FF5 #4454F8 #7F8AFA #BAC0FC #E2E4FE

Accessibility & contrast

On white

3.04
#7F8AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#7F8AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8AFA
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8AFA#FFFFFF#000000##000000
##7F8AFA1.003.046.926.92
#FFFFFF3.041.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B99FE
Deuteranopia (green-blind)
#4F8FF8
Tritanopia (blue-blind)
#4EA2B6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #7f8afa;
/* rgb */ color: rgb(127, 138, 250);
/* oklch */ color: oklch(67.6% 0.164 276.8);
Tailwind
colors: {
  custom: {
    50: '#abacfc',
    500: '#7f8afa',
    950: '#000000',
  },
}
SCSS
$custom: #7f8afa;
$custom-light: #abacfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8afa",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 234.634,
    "s": 92.481,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67611,
    "c": 0.16408,
    "h": 276.8
  },
  "luminance": 0.29591
}

Semantic roles & 50–950 ramp

primary
#7F8AFA
secondary
#F6F3D5
accent
#D100E6
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #7F8AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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