#7171E7#7171E7

#7171E7 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.8% C 0.174 H 279.9°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7171E7
RGBrgb(113, 113, 231)
HSLhsl(240, 71%, 67%)
HSVhsv(240, 51%, 91%)
CMYKcmyk(51.1%, 51.1%, 0%, 9.4%)
CIE-LABlab(53.05, 31.61, -60.08)
CIE-LCHlch(53.05, 67.89, 297.75°)
OKLaboklab(60.78% 0.0299 -0.1714)
OKLCHoklch(60.78% 0.174 279.9)
XYZxyz(27.1345, 21.0889, 78.2266)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7171E7 #E7E771
analogous
#71ACE7 #7171E7 #AC71E7
triadic
#7171E7 #E77171 #71E771
tetradic
#7171E7 #E771AC #E7E771 #71E7AC
square
#7171E7 #E771AC #E7E771 #71E7AC
split-complementary
#7171E7 #E7AC71 #ACE771
monochromatic
#2020BE #3D3DDE #7171E7 #A5A5F0 #DADAF9

Accessibility & contrast

On white

4.02
#7171E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7171E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7171E7
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7171E7#FFFFFF#000000##000000
##7171E71.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3583EB
Deuteranopia (green-blind)
#277AE4
Tritanopia (blue-blind)
#408BA1
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7171e7;
/* rgb */ color: rgb(113, 113, 231);
/* oklch */ color: oklch(60.8% 0.174 279.9);
Tailwind
colors: {
  custom: {
    50: '#a199ef',
    500: '#7171e7',
    950: '#000000',
  },
}
SCSS
$custom: #7171e7;
$custom-light: #a199ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7171e7",
  "rgb": {
    "r": 113,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 240,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60775,
    "c": 0.17402,
    "h": 279.9
  },
  "luminance": 0.2109
}

Semantic roles & 50–950 ramp

primary
#7171E7
secondary
#ECECC7
accent
#D312D3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7171E7

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

Preview Lab → · Contrast checker → · Palette generator →

#7171E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva