#7171CC#7171CC

#7171CC is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.1% C 0.137 H 281.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7171CC
RGBrgb(113, 113, 204)
HSLhsl(240, 47%, 62%)
HSVhsv(240, 45%, 80%)
CMYKcmyk(44.6%, 44.6%, 0%, 20%)
CIE-LABlab(51.47, 23.48, -47.33)
CIE-LCHlch(51.47, 52.84, 296.38°)
OKLaboklab(59.08% 0.027 -0.134)
OKLCHoklch(59.08% 0.137 281.4)
XYZxyz(23.6110, 19.6795, 59.6695)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7171CC #CCCC71
analogous
#719FCC #7171CC #9F71CC
triadic
#7171CC #CC7171 #71CC71
tetradic
#7171CC #CC719F #CCCC71 #71CC9F
square
#7171CC #CC719F #CCCC71 #71CC9F
split-complementary
#7171CC #CC9F71 #9FCC71
monochromatic
#33338F #4444BC #7171CC #9E9EDC #CBCBEC

Accessibility & contrast

On white

4.25
#7171CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7171CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7171CC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7171CC#FFFFFF#000000##000000
##7171CC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7ECF
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#538495
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7171cc;
/* rgb */ color: rgb(113, 113, 204);
/* oklch */ color: oklch(59.1% 0.137 281.4);
Tailwind
colors: {
  custom: {
    50: '#9e99dc',
    500: '#7171cc',
    950: '#000000',
  },
}
SCSS
$custom: #7171cc;
$custom-light: #9e99dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7171cc",
  "rgb": {
    "r": 113,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 240,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59079,
    "c": 0.1367,
    "h": 281.4
  },
  "luminance": 0.19681
}

Semantic roles & 50–950 ramp

primary
#7171CC
secondary
#DDDDBC
accent
#BA2BBA
background
#FAF9FD
surface
#F3F2FB
border
#CDCCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7171CC

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

Preview Lab → · Contrast checker → · Palette generator →

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