#7170EF#7170EF

#7170EF is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.1% C 0.186 H 279.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7170EF
RGBrgb(113, 112, 239)
HSLhsl(240, 80%, 69%)
HSVhsv(240, 53%, 94%)
CMYKcmyk(52.7%, 53.1%, 0%, 6.3%)
CIE-LABlab(53.31, 34.66, -64.13)
CIE-LCHlch(53.31, 72.90, 298.39°)
OKLaboklab(61.13% 0.0314 -0.1834)
OKLCHoklch(61.13% 0.186 279.7)
XYZxyz(28.1794, 21.3293, 84.2767)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170EF #EEEF70
analogous
#70AFEF #7170EF #B170EF
triadic
#7170EF #EF7170 #70EF71
tetradic
#7170EF #EF70AF #EEEF70 #70EFB1
square
#7170EF #EF70AF #EEEF70 #70EFB1
split-complementary
#7170EF #EFB170 #AFEF70
monochromatic
#1817CE #3A39E9 #7170EF #A8A7F5 #DEDEFB

Accessibility & contrast

On white

3.99
#7170EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7170EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170EF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170EF#FFFFFF#000000##000000
##7170EF1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2584F3
Deuteranopia (green-blind)
#0B7AEC
Tritanopia (blue-blind)
#398DA5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7170ef;
/* rgb */ color: rgb(113, 112, 239);
/* oklch */ color: oklch(61.1% 0.186 279.7);
Tailwind
colors: {
  custom: {
    50: '#a399f5',
    500: '#7170ef',
    950: '#000000',
  },
}
SCSS
$custom: #7170ef;
$custom-light: #a399f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7170ef",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 240.472,
    "s": 79.874,
    "l": 68.824
  },
  "oklch": {
    "l": 0.61131,
    "c": 0.18603,
    "h": 279.7
  },
  "luminance": 0.21331
}

Semantic roles & 50–950 ramp

primary
#7170EF
secondary
#F0F0CB
accent
#DC09DB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170EF

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

Preview Lab → · Contrast checker → · Palette generator →

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