#7170F2#7170F2

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

Color values

HEX#7170F2
RGBrgb(113, 112, 242)
HSLhsl(240, 83%, 69%)
HSVhsv(240, 54%, 95%)
CMYKcmyk(53.3%, 53.7%, 0%, 5.1%)
CIE-LABlab(53.50, 35.58, -65.50)
CIE-LCHlch(53.50, 74.54, 298.51°)
OKLaboklab(61.34% 0.0315 -0.1874)
OKLCHoklch(61.34% 0.19 279.6)
XYZxyz(28.6262, 21.5081, 86.6302)
Luminance0.2151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7170F2 #F1F270
analogous
#70B0F2 #7170F2 #B270F2
triadic
#7170F2 #F27170 #70F271
tetradic
#7170F2 #F270B0 #F1F270 #70F2B2
square
#7170F2 #F270B0 #F1F270 #70F2B2
split-complementary
#7170F2 #F2B270 #B0F270
monochromatic
#1513D4 #3938ED #7170F2 #A9A8F7 #E0E0FC

Accessibility & contrast

On white

3.96
#7170F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#7170F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7170F2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7170F2#FFFFFF#000000##000000
##7170F21.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F85F6
Deuteranopia (green-blind)
#007BEF
Tritanopia (blue-blind)
#358EA6
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7170f2;
/* rgb */ color: rgb(113, 112, 242);
/* oklch */ color: oklch(61.3% 0.190 279.6);
Tailwind
colors: {
  custom: {
    50: '#a399f7',
    500: '#7170f2',
    950: '#000000',
  },
}
SCSS
$custom: #7170f2;
$custom-light: #a399f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7170f2",
  "rgb": {
    "r": 113,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 240.462,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61337,
    "c": 0.19,
    "h": 279.6
  },
  "luminance": 0.2151
}

Semantic roles & 50–950 ramp

primary
#7170F2
secondary
#F1F2CC
accent
#E006DE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7170F2

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

Preview Lab → · Contrast checker → · Palette generator →

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