#7971DB#7971DB

#7971DB is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.6% C 0.157 H 284.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7971DB
RGBrgb(121, 113, 219)
HSLhsl(245, 60%, 65%)
HSVhsv(245, 48%, 86%)
CMYKcmyk(44.7%, 48.4%, 0%, 14.1%)
CIE-LABlab(52.94, 29.80, -53.47)
CIE-LCHlch(52.94, 61.22, 299.13°)
OKLaboklab(60.61% 0.0382 -0.1518)
OKLCHoklch(60.61% 0.157 284.1)
XYZxyz(26.5727, 20.9885, 69.6552)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971DB #D3DB71
analogous
#719EDB #7971DB #AE71DB
triadic
#7971DB #DB7971 #71DB79
tetradic
#7971DB #DB719E #D3DB71 #71DBAE
square
#7971DB #DB719E #D3DB71 #71DBAE
split-complementary
#7971DB #DBAE71 #9EDB71
monochromatic
#342AA7 #4B40CF #7971DB #A7A2E7 #D5D3F4

Accessibility & contrast

On white

4.04
#7971DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7971DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971DB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971DB#FFFFFF#000000##000000
##7971DB1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4482DF
Deuteranopia (green-blind)
#407BD9
Tritanopia (blue-blind)
#59879C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7971db;
/* rgb */ color: rgb(121, 113, 219);
/* oklch */ color: oklch(60.6% 0.157 284.1);
Tailwind
colors: {
  custom: {
    50: '#a59ae7',
    500: '#7971db',
    950: '#000000',
  },
}
SCSS
$custom: #7971db;
$custom-light: #a59ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7971db",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 244.528,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60614,
    "c": 0.15654,
    "h": 284.1
  },
  "luminance": 0.2099
}

Semantic roles & 50–950 ramp

primary
#7971DB
secondary
#E3E6C2
accent
#C71EBA
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7971DB

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

Preview Lab → · Contrast checker → · Palette generator →

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