#7171D9#7171D9

#7171D9 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.9% C 0.155 H 280.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7171D9
RGBrgb(113, 113, 217)
HSLhsl(240, 58%, 65%)
HSVhsv(240, 48%, 85%)
CMYKcmyk(47.9%, 47.9%, 0%, 14.9%)
CIE-LABlab(52.21, 27.36, -53.54)
CIE-LCHlch(52.21, 60.13, 297.07°)
OKLaboklab(59.87% 0.0286 -0.1522)
OKLCHoklch(59.87% 0.155 280.7)
XYZxyz(25.2358, 20.3294, 68.2264)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7171D9 #D9D971
analogous
#71A5D9 #7171D9 #A571D9
triadic
#7171D9 #D97171 #71D971
tetradic
#7171D9 #D971A5 #D9D971 #71D9A5
square
#7171D9 #D971A5 #D9D971 #71D9A5
split-complementary
#7171D9 #D9A571 #A5D971
monochromatic
#2C2CA4 #4141CC #7171D9 #A1A1E6 #D2D2F3

Accessibility & contrast

On white

4.15
#7171D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#7171D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7171D9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7171D9#FFFFFF#000000##000000
##7171D91.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4380DD
Deuteranopia (green-blind)
#3C79D7
Tritanopia (blue-blind)
#4B879B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7171d9;
/* rgb */ color: rgb(113, 113, 217);
/* oklch */ color: oklch(59.9% 0.155 280.7);
Tailwind
colors: {
  custom: {
    50: '#a099e5',
    500: '#7171d9',
    950: '#000000',
  },
}
SCSS
$custom: #7171d9;
$custom-light: #a099e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7171d9",
  "rgb": {
    "r": 113,
    "g": 113,
    "b": 217
  },
  "hsl": {
    "h": 240,
    "s": 57.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59873,
    "c": 0.15489,
    "h": 280.7
  },
  "luminance": 0.20331
}

Semantic roles & 50–950 ramp

primary
#7171D9
secondary
#E5E5C1
accent
#C520C5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #7171D9

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

Preview Lab → · Contrast checker → · Palette generator →

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