#7171CD#7171CD

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

Color values

HEX#7171CD
RGBrgb(113, 113, 205)
HSLhsl(240, 48%, 62%)
HSVhsv(240, 45%, 80%)
CMYKcmyk(44.9%, 44.9%, 0%, 19.6%)
CIE-LABlab(51.53, 23.78, -47.82)
CIE-LCHlch(51.53, 53.40, 296.44°)
OKLaboklab(59.14% 0.0271 -0.1354)
OKLCHoklch(59.14% 0.138 281.3)
XYZxyz(23.7313, 19.7276, 60.3032)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7171CD #CDCD71
analogous
#719FCD #7171CD #9F71CD
triadic
#7171CD #CD7171 #71CD71
tetradic
#7171CD #CD719F #CDCD71 #71CD9F
square
#7171CD #CD719F #CDCD71 #71CD9F
split-complementary
#7171CD #CD9F71 #9FCD71
monochromatic
#333391 #4444BD #7171CD #9E9EDD #CCCCED

Accessibility & contrast

On white

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

On black

4.95
#7171CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7171CD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7171CD#FFFFFF#000000##000000
##7171CD1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7ED0
Deuteranopia (green-blind)
#4778CB
Tritanopia (blue-blind)
#538495
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7171cd;
/* rgb */ color: rgb(113, 113, 205);
/* oklch */ color: oklch(59.1% 0.138 281.3);
Tailwind
colors: {
  custom: {
    50: '#9e99dd',
    500: '#7171cd',
    950: '#000000',
  },
}
SCSS
$custom: #7171cd;
$custom-light: #9e99dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7171cd",
  "rgb": {
    "r": 113,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 240,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59139,
    "c": 0.13811,
    "h": 281.3
  },
  "luminance": 0.19729
}

Semantic roles & 50–950 ramp

primary
#7171CD
secondary
#DEDEBC
accent
#BB2ABB
background
#FAF9FD
surface
#F3F2FB
border
#CDCCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7171CD

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

Preview Lab → · Contrast checker → · Palette generator →

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