#7971EC#7971EC

#7971EC is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.7% C 0.179 H 282.7°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7971EC
RGBrgb(121, 113, 236)
HSLhsl(244, 76%, 68%)
HSVhsv(244, 52%, 93%)
CMYKcmyk(48.7%, 52.1%, 0%, 7.5%)
CIE-LABlab(53.95, 34.80, -61.39)
CIE-LCHlch(53.95, 70.57, 299.55°)
OKLaboklab(61.7% 0.0395 -0.1751)
OKLCHoklch(61.7% 0.179 282.7)
XYZxyz(28.9260, 21.9298, 82.0493)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971EC #E4EC71
analogous
#71A6EC #7971EC #B671EC
triadic
#7971EC #EC7971 #71EC79
tetradic
#7971EC #EC71A6 #E4EC71 #71ECB6
square
#7971EC #EC71A6 #E4EC71 #71ECB6
split-complementary
#7971EC #ECB671 #A6EC71
monochromatic
#261BC8 #463BE5 #7971EC #ACA7F3 #DFDDFA

Accessibility & contrast

On white

3.90
#7971EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#7971EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971EC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971EC#FFFFFF#000000##000000
##7971EC1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3185F0
Deuteranopia (green-blind)
#287DE9
Tritanopia (blue-blind)
#4F8CA4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7971ec;
/* rgb */ color: rgb(121, 113, 236);
/* oklch */ color: oklch(61.7% 0.179 282.7);
Tailwind
colors: {
  custom: {
    50: '#a79af3',
    500: '#7971ec',
    950: '#000000',
  },
}
SCSS
$custom: #7971ec;
$custom-light: #a79af3;
$custom-dark: #000000;
JSON
{
  "hex": "#7971ec",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 243.902,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61702,
    "c": 0.17947,
    "h": 282.7
  },
  "luminance": 0.21931
}

Semantic roles & 50–950 ramp

primary
#7971EC
secondary
#ECEFCA
accent
#D90DCB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7971EC

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

Preview Lab → · Contrast checker → · Palette generator →

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