#7170F1#7170F1

#7170F1 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.3% C 0.189 H 279.6°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7170F1
RGBrgb(113, 112, 241)
HSLhsl(240, 82%, 69%)
HSVhsv(240, 54%, 95%)
CMYKcmyk(53.1%, 53.5%, 0%, 5.5%)
CIE-LABlab(53.44, 35.27, -65.04)
CIE-LCHlch(53.44, 73.99, 298.47°)
OKLaboklab(61.27% 0.0315 -0.186)
OKLCHoklch(61.27% 0.189 279.6)
XYZxyz(28.4765, 21.4482, 85.8414)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170F1 #F0F170
analogous
#70B0F1 #7170F1 #B270F1
triadic
#7170F1 #F17170 #70F171
tetradic
#7170F1 #F170B0 #F0F170 #70F1B2
square
#7170F1 #F170B0 #F0F170 #70F1B2
split-complementary
#7170F1 #F1B270 #B0F170
monochromatic
#1615D2 #3A38EC #7170F1 #A8A8F6 #E0DFFC

Accessibility & contrast

On white

3.97
#7170F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#7170F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170F1
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170F1#FFFFFF#000000##000000
##7170F11.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2185F5
Deuteranopia (green-blind)
#007BEE
Tritanopia (blue-blind)
#378DA6
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7170f1;
/* rgb */ color: rgb(113, 112, 241);
/* oklch */ color: oklch(61.3% 0.189 279.6);
Tailwind
colors: {
  custom: {
    50: '#a399f6',
    500: '#7170f1',
    950: '#000000',
  },
}
SCSS
$custom: #7170f1;
$custom-light: #a399f6;
$custom-dark: #000000;
JSON
{
  "hex": "#7170f1",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 241
  },
  "hsl": {
    "h": 240.465,
    "s": 82.166,
    "l": 69.216
  },
  "oklch": {
    "l": 0.61268,
    "c": 0.18868,
    "h": 279.6
  },
  "luminance": 0.2145
}

Semantic roles & 50–950 ramp

primary
#7170F1
secondary
#F1F1CC
accent
#DF07DD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170F1

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

Preview Lab → · Contrast checker → · Palette generator →

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