#7171E1#7171E1

#7171E1 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.4% C 0.166 H 280.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7171E1
RGBrgb(113, 113, 225)
HSLhsl(240, 65%, 66%)
HSVhsv(240, 50%, 88%)
CMYKcmyk(49.8%, 49.8%, 0%, 11.8%)
CIE-LABlab(52.68, 29.79, -57.30)
CIE-LCHlch(52.68, 64.58, 297.47°)
OKLaboklab(60.38% 0.0294 -0.1632)
OKLCHoklch(60.38% 0.166 280.2)
XYZxyz(26.3016, 20.7557, 73.8399)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7171E1 #E1E171
analogous
#71A9E1 #7171E1 #A971E1
triadic
#7171E1 #E17171 #71E171
tetradic
#7171E1 #E171A9 #E1E171 #71E1A9
square
#7171E1 #E171A9 #E1E171 #71E1A9
split-complementary
#7171E1 #E1A971 #A9E171
monochromatic
#2626B2 #3E3ED6 #7171E1 #A4A4EC #D6D6F6

Accessibility & contrast

On white

4.08
#7171E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7171E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7171E1
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7171E1#FFFFFF#000000##000000
##7171E11.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C82E5
Deuteranopia (green-blind)
#317ADF
Tritanopia (blue-blind)
#45899E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7171e1;
/* rgb */ color: rgb(113, 113, 225);
/* oklch */ color: oklch(60.4% 0.166 280.2);
Tailwind
colors: {
  custom: {
    50: '#a199eb',
    500: '#7171e1',
    950: '#000000',
  },
}
SCSS
$custom: #7171e1;
$custom-light: #a199eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7171e1",
  "rgb": {
    "r": 113,
    "g": 113,
    "b": 225
  },
  "hsl": {
    "h": 240,
    "s": 65.116,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60383,
    "c": 0.16588,
    "h": 280.2
  },
  "luminance": 0.20757
}

Semantic roles & 50–950 ramp

primary
#7171E1
secondary
#E9E9C5
accent
#CD19CD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #7171E1

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

Preview Lab → · Contrast checker → · Palette generator →

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