#7971CD#7971CD

#7971CD is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.8% C 0.137 H 285.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7971CD
RGBrgb(121, 113, 205)
HSLhsl(245, 48%, 62%)
HSVhsv(245, 45%, 80%)
CMYKcmyk(41%, 44.9%, 0%, 19.6%)
CIE-LABlab(52.15, 25.76, -46.78)
CIE-LCHlch(52.15, 53.41, 298.84°)
OKLaboklab(59.77% 0.0365 -0.1322)
OKLCHoklch(59.77% 0.137 285.4)
XYZxyz(24.8066, 20.2821, 60.3536)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7971CD #C5CD71
analogous
#7197CD #7971CD #A771CD
triadic
#7971CD #CD7971 #71CD79
tetradic
#7971CD #CD7197 #C5CD71 #71CDA7
square
#7971CD #CD7197 #C5CD71 #71CDA7
split-complementary
#7971CD #CDA771 #97CD71
monochromatic
#3B3391 #4E44BD #7971CD #A49EDD #CECCED

Accessibility & contrast

On white

4.15
#7971CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#7971CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7971CD
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7971CD#FFFFFF#000000##000000
##7971CD1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FD0
Deuteranopia (green-blind)
#4C7ACB
Tritanopia (blue-blind)
#608395
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7971cd;
/* rgb */ color: rgb(121, 113, 205);
/* oklch */ color: oklch(59.8% 0.137 285.4);
Tailwind
colors: {
  custom: {
    50: '#a49add',
    500: '#7971cd',
    950: '#000000',
  },
}
SCSS
$custom: #7971cd;
$custom-light: #a49add;
$custom-dark: #000000;
JSON
{
  "hex": "#7971cd",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 245.217,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.5977,
    "c": 0.13714,
    "h": 285.4
  },
  "luminance": 0.20283
}

Semantic roles & 50–950 ramp

primary
#7971CD
secondary
#DBDEBC
accent
#BB2AAF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7971CD

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

Preview Lab → · Contrast checker → · Palette generator →

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