#7971DF#7971DF

#7971DF is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.9% C 0.162 H 283.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7971DF
RGBrgb(121, 113, 223)
HSLhsl(244, 63%, 66%)
HSVhsv(244, 49%, 87%)
CMYKcmyk(45.7%, 49.3%, 0%, 12.5%)
CIE-LABlab(53.17, 30.97, -55.36)
CIE-LCHlch(53.17, 63.43, 299.22°)
OKLaboklab(60.86% 0.0386 -0.1573)
OKLCHoklch(60.86% 0.162 283.8)
XYZxyz(27.1056, 21.2017, 72.4618)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971DF #D7DF71
analogous
#71A0DF #7971DF #B071DF
triadic
#7971DF #DF7971 #71DF79
tetradic
#7971DF #DF71A0 #D7DF71 #71DFB0
square
#7971DF #DF71A0 #D7DF71 #71DFB0
split-complementary
#7971DF #DFB071 #A0DF71
monochromatic
#3127AE #4A3FD4 #7971DF #A8A3EA #D7D5F6

Accessibility & contrast

On white

4.01
#7971DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7971DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971DF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971DF#FFFFFF#000000##000000
##7971DF1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4082E3
Deuteranopia (green-blind)
#3B7BDD
Tritanopia (blue-blind)
#57889D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7971df;
/* rgb */ color: rgb(121, 113, 223);
/* oklch */ color: oklch(60.9% 0.162 283.8);
Tailwind
colors: {
  custom: {
    50: '#a59ae9',
    500: '#7971df',
    950: '#000000',
  },
}
SCSS
$custom: #7971df;
$custom-light: #a59ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#7971df",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 244.364,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60864,
    "c": 0.162,
    "h": 283.8
  },
  "luminance": 0.21203
}

Semantic roles & 50–950 ramp

primary
#7971DF
secondary
#E5E8C4
accent
#CB1BBE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7971DF

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

Preview Lab → · Contrast checker → · Palette generator →

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