#7170F5#7170F5

#7170F5 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.5% C 0.194 H 279.4°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7170F5
RGBrgb(113, 112, 245)
HSLhsl(240, 87%, 70%)
HSVhsv(240, 54%, 96%)
CMYKcmyk(53.9%, 54.3%, 0%, 3.9%)
CIE-LABlab(53.70, 36.50, -66.85)
CIE-LCHlch(53.70, 76.17, 298.64°)
OKLaboklab(61.55% 0.0316 -0.1913)
OKLCHoklch(61.55% 0.194 279.4)
XYZxyz(29.0805, 21.6898, 89.0227)
Luminance0.2169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170F5 #F4F570
analogous
#70B2F5 #7170F5 #B370F5
triadic
#7170F5 #F57170 #70F571
tetradic
#7170F5 #F570B2 #F4F570 #70F5B3
square
#7170F5 #F570B2 #F4F570 #70F5B3
split-complementary
#7170F5 #F5B370 #B2F570
monochromatic
#110FDB #3837F1 #7170F5 #AAA9F9 #E3E2FD

Accessibility & contrast

On white

3.93
#7170F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7170F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170F5
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170F5#FFFFFF#000000##000000
##7170F51.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1786FA
Deuteranopia (green-blind)
#007BF2
Tritanopia (blue-blind)
#328FA8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7170f5;
/* rgb */ color: rgb(113, 112, 245);
/* oklch */ color: oklch(61.5% 0.194 279.4);
Tailwind
colors: {
  custom: {
    50: '#a399f9',
    500: '#7170f5',
    950: '#000000',
  },
}
SCSS
$custom: #7170f5;
$custom-light: #a399f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7170f5",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 245
  },
  "hsl": {
    "h": 240.451,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.61545,
    "c": 0.19394,
    "h": 279.4
  },
  "luminance": 0.21692
}

Semantic roles & 50–950 ramp

primary
#7170F5
secondary
#F3F3CE
accent
#E302E2
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170F5

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

Preview Lab → · Contrast checker → · Palette generator →

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