#7170E8#7170E8

#7170E8 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.7% C 0.177 H 280.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7170E8
RGBrgb(113, 112, 232)
HSLhsl(241, 72%, 67%)
HSVhsv(241, 52%, 91%)
CMYKcmyk(51.3%, 51.7%, 0%, 9%)
CIE-LABlab(52.87, 32.52, -60.93)
CIE-LCHlch(52.87, 69.07, 298.09°)
OKLaboklab(60.66% 0.0311 -0.1739)
OKLCHoklch(60.66% 0.177 280.1)
XYZxyz(27.1652, 20.9237, 78.9355)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170E8 #E7E870
analogous
#70ABE8 #7170E8 #AD70E8
triadic
#7170E8 #E87170 #70E871
tetradic
#7170E8 #E870AB #E7E870 #70E8AD
square
#7170E8 #E870AB #E7E870 #70E8AD
split-complementary
#7170E8 #E8AD70 #ABE870
monochromatic
#201FBF #3D3BE0 #7170E8 #A5A5F0 #DAD9F9

Accessibility & contrast

On white

4.05
#7170E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7170E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170E8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170E8#FFFFFF#000000##000000
##7170E81.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3183EC
Deuteranopia (green-blind)
#227AE5
Tritanopia (blue-blind)
#408BA1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7170e8;
/* rgb */ color: rgb(113, 112, 232);
/* oklch */ color: oklch(60.7% 0.177 280.1);
Tailwind
colors: {
  custom: {
    50: '#a299f0',
    500: '#7170e8',
    950: '#000000',
  },
}
SCSS
$custom: #7170e8;
$custom-light: #a299f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7170e8",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 232
  },
  "hsl": {
    "h": 240.5,
    "s": 72.289,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60659,
    "c": 0.17669,
    "h": 280.1
  },
  "luminance": 0.20925
}

Semantic roles & 50–950 ramp

primary
#7170E8
secondary
#ECEDC7
accent
#D411D3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170E8

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

Preview Lab → · Contrast checker → · Palette generator →

#7170E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva