#7971FB#7971FB

#7971FB is a light, vivid blue. Relative luminance 0.228; OKLCH L 62.7% C 0.199 H 281.6°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7971FB
RGBrgb(121, 113, 251)
HSLhsl(243, 95%, 71%)
HSVhsv(243, 55%, 98%)
CMYKcmyk(51.8%, 55%, 0%, 1.6%)
CIE-LABlab(54.91, 39.28, -68.20)
CIE-LCHlch(54.91, 78.70, 299.94°)
OKLaboklab(62.72% 0.04 -0.1951)
OKLCHoklch(62.72% 0.199 281.6)
XYZxyz(31.1975, 22.8384, 94.0124)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971FB #F3FB71
analogous
#71AEFB #7971FB #BE71FB
triadic
#7971FB #FB7971 #71FB79
tetradic
#7971FB #FB71AE #F3FB71 #71FBBE
square
#7971FB #FB71AE #F3FB71 #71FBBE
split-complementary
#7971FB #FBBE71 #AEFB71
monochromatic
#1407EB #4135F9 #7971FB #B1ADFD #E3E1FE

Accessibility & contrast

On white

3.77
#7971FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7971FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971FB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971FB#FFFFFF#000000##000000
##7971FB1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1088FF
Deuteranopia (green-blind)
#007EF8
Tritanopia (blue-blind)
#4291AB
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7971fb;
/* rgb */ color: rgb(121, 113, 251);
/* oklch */ color: oklch(62.7% 0.199 281.6);
Tailwind
colors: {
  custom: {
    50: '#a99afd',
    500: '#7971fb',
    950: '#000000',
  },
}
SCSS
$custom: #7971fb;
$custom-light: #a99afd;
$custom-dark: #000000;
JSON
{
  "hex": "#7971fb",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 243.478,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.62717,
    "c": 0.19915,
    "h": 281.6
  },
  "luminance": 0.2284
}

Semantic roles & 50–950 ramp

primary
#7971FB
secondary
#F4F6D2
accent
#E600D8
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7971FB

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

Preview Lab → · Contrast checker → · Palette generator →

#7971FB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva