#7170EB#7170EB

#7170EB is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.9% C 0.181 H 280.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7170EB
RGBrgb(113, 112, 235)
HSLhsl(240, 75%, 68%)
HSVhsv(240, 52%, 92%)
CMYKcmyk(51.9%, 52.3%, 0%, 7.8%)
CIE-LABlab(53.05, 33.43, -62.31)
CIE-LCHlch(53.05, 70.71, 298.22°)
OKLaboklab(60.86% 0.0312 -0.178)
OKLCHoklch(60.86% 0.181 280)
XYZxyz(27.5950, 21.0956, 81.1989)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170EB #EAEB70
analogous
#70ACEB #7170EB #AE70EB
triadic
#7170EB #EB7170 #70EB71
tetradic
#7170EB #EB70AC #EAEB70 #70EBAE
square
#7170EB #EB70AC #EAEB70 #70EBAE
split-complementary
#7170EB #EBAE70 #ACEB70
monochromatic
#1D1CC5 #3C3AE3 #7170EB #A6A6F3 #DCDBFA

Accessibility & contrast

On white

4.02
#7170EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7170EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170EB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170EB#FFFFFF#000000##000000
##7170EB1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C83EF
Deuteranopia (green-blind)
#1B7AE8
Tritanopia (blue-blind)
#3D8CA3
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7170eb;
/* rgb */ color: rgb(113, 112, 235);
/* oklch */ color: oklch(60.9% 0.181 280.0);
Tailwind
colors: {
  custom: {
    50: '#a299f2',
    500: '#7170eb',
    950: '#000000',
  },
}
SCSS
$custom: #7170eb;
$custom-light: #a299f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7170eb",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 240.488,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6086,
    "c": 0.18071,
    "h": 280
  },
  "luminance": 0.21097
}

Semantic roles & 50–950 ramp

primary
#7170EB
secondary
#EEEEC9
accent
#D80ED6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170EB

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

Preview Lab → · Contrast checker → · Palette generator →

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