#7170F8#7170F8

#7170F8 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.8% C 0.198 H 279.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7170F8
RGBrgb(113, 112, 248)
HSLhsl(240, 91%, 71%)
HSVhsv(240, 55%, 97%)
CMYKcmyk(54.4%, 54.8%, 0%, 2.7%)
CIE-LABlab(53.89, 37.43, -68.20)
CIE-LCHlch(53.89, 77.79, 298.76°)
OKLaboklab(61.75% 0.0317 -0.1953)
OKLCHoklch(61.75% 0.198 279.2)
XYZxyz(29.5422, 21.8744, 91.4542)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170F8 #F7F870
analogous
#70B3F8 #7170F8 #B570F8
triadic
#7170F8 #F87170 #70F871
tetradic
#7170F8 #F870B3 #F7F870 #70F8B5
square
#7170F8 #F870B3 #F7F870 #70F8B5
split-complementary
#7170F8 #F8B570 #B3F870
monochromatic
#0D0BE3 #3736F5 #7170F8 #ABAAFB #E2E2FE

Accessibility & contrast

On white

3.91
#7170F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7170F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170F8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170F8#FFFFFF#000000##000000
##7170F81.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B86FD
Deuteranopia (green-blind)
#007BF5
Tritanopia (blue-blind)
#2E8FA9
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7170f8;
/* rgb */ color: rgb(113, 112, 248);
/* oklch */ color: oklch(61.8% 0.198 279.2);
Tailwind
colors: {
  custom: {
    50: '#a499fb',
    500: '#7170f8',
    950: '#000000',
  },
}
SCSS
$custom: #7170f8;
$custom-light: #a499fb;
$custom-dark: #000000;
JSON
{
  "hex": "#7170f8",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 240.441,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.61754,
    "c": 0.19787,
    "h": 279.2
  },
  "luminance": 0.21876
}

Semantic roles & 50–950 ramp

primary
#7170F8
secondary
#F4F4CF
accent
#E600E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170F8

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

Preview Lab → · Contrast checker → · Palette generator →

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