#7171B7#7171B7

#7171B7 is a mid, moderate blue. Relative luminance 0.187; OKLCH L 57.9% C 0.106 H 282.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7171B7
RGBrgb(113, 113, 183)
HSLhsl(240, 33%, 58%)
HSVhsv(240, 38%, 72%)
CMYKcmyk(38.3%, 38.3%, 0%, 28.2%)
CIE-LABlab(50.38, 17.39, -37.01)
CIE-LCHlch(50.38, 40.89, 295.17°)
OKLaboklab(57.89% 0.0232 -0.1039)
OKLCHoklch(57.89% 0.106 282.6)
XYZxyz(21.2600, 18.7391, 47.2874)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7171B7 #B7B771
analogous
#7194B7 #7171B7 #9471B7
triadic
#7171B7 #B77171 #71B771
tetradic
#7171B7 #B77194 #B7B771 #71B794
square
#7171B7 #B77194 #B7B771 #71B794
split-complementary
#7171B7 #B79471 #94B771
monochromatic
#3A3A73 #4F4F9C #7171B7 #9A9ACC #C2C2E0

Accessibility & contrast

On white

4.42
#7171B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7171B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7171B7
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7171B7#FFFFFF#000000##000000
##7171B71.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7ABA
Deuteranopia (green-blind)
#5776B5
Tritanopia (blue-blind)
#5D7F8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7171b7;
/* rgb */ color: rgb(113, 113, 183);
/* oklch */ color: oklch(57.9% 0.106 282.6);
Tailwind
colors: {
  custom: {
    50: '#9c99cd',
    500: '#7171b7',
    950: '#000000',
  },
}
SCSS
$custom: #7171b7;
$custom-light: #9c99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7171b7",
  "rgb": {
    "r": 113,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 240,
    "s": 32.71,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57891,
    "c": 0.10643,
    "h": 282.6
  },
  "luminance": 0.1874
}

Semantic roles & 50–950 ramp

primary
#7171B7
secondary
#D0D0B4
accent
#C95FC9
background
#F9F9FC
surface
#F2F2F9
border
#CCCCD2
text
#0E0E13
muted
#7E7E82

Preview Lab

Preview with #7171B7

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

Preview Lab → · Contrast checker → · Palette generator →

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