#7171EA#7171EA

#7171EA is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.0% C 0.178 H 279.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7171EA
RGBrgb(113, 113, 234)
HSLhsl(240, 74%, 68%)
HSVhsv(240, 52%, 92%)
CMYKcmyk(51.7%, 51.7%, 0%, 8.2%)
CIE-LABlab(53.23, 32.53, -61.46)
CIE-LCHlch(53.23, 69.54, 297.89°)
OKLaboklab(60.97% 0.0301 -0.1755)
OKLCHoklch(60.97% 0.178 279.7)
XYZxyz(27.5619, 21.2598, 80.4772)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7171EA #EAEA71
analogous
#71ADEA #7171EA #AD71EA
triadic
#7171EA #EA7171 #71EA71
tetradic
#7171EA #EA71AD #EAEA71 #71EAAD
square
#7171EA #EA71AD #EAEA71 #71EAAD
split-complementary
#7171EA #EAAD71 #ADEA71
monochromatic
#1D1DC4 #3C3CE2 #7171EA #A6A6F2 #DCDCFA

Accessibility & contrast

On white

4.00
#7171EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#7171EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7171EA
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7171EA#FFFFFF#000000##000000
##7171EA1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3184EE
Deuteranopia (green-blind)
#217AE7
Tritanopia (blue-blind)
#3E8CA3
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7171ea;
/* rgb */ color: rgb(113, 113, 234);
/* oklch */ color: oklch(61.0% 0.178 279.7);
Tailwind
colors: {
  custom: {
    50: '#a299f1',
    500: '#7171ea',
    950: '#000000',
  },
}
SCSS
$custom: #7171ea;
$custom-light: #a299f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7171ea",
  "rgb": {
    "r": 113,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 240,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.60974,
    "c": 0.17805,
    "h": 279.7
  },
  "luminance": 0.21261
}

Semantic roles & 50–950 ramp

primary
#7171EA
secondary
#EEEEC9
accent
#D60FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7171EA

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

Preview Lab → · Contrast checker → · Palette generator →

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