#7172F6#7172F6

#7172F6 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 62.0% C 0.193 H 278.9°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7172F6
RGBrgb(113, 114, 246)
HSLhsl(240, 88%, 70%)
HSVhsv(240, 54%, 96%)
CMYKcmyk(54.1%, 53.7%, 0%, 3.5%)
CIE-LABlab(54.24, 35.62, -66.53)
CIE-LCHlch(54.24, 75.47, 298.17°)
OKLaboklab(61.97% 0.0297 -0.1904)
OKLCHoklch(61.97% 0.193 278.9)
XYZxyz(29.4567, 22.1973, 89.9032)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7172F6 #F6F571
analogous
#71B4F6 #7172F6 #B271F6
triadic
#7172F6 #F67172 #72F671
tetradic
#7172F6 #F671B4 #F6F571 #71F6B2
square
#7172F6 #F671B4 #F6F571 #71F6B2
split-complementary
#7172F6 #F6B271 #B4F671
monochromatic
#0E10DE #3739F2 #7172F6 #ABABFA #E2E2FD

Accessibility & contrast

On white

3.86
#7172F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#7172F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7172F6
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7172F6#FFFFFF#000000##000000
##7172F61.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F87FB
Deuteranopia (green-blind)
#007CF3
Tritanopia (blue-blind)
#3090A9
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7172f6;
/* rgb */ color: rgb(113, 114, 246);
/* oklch */ color: oklch(62.0% 0.193 278.9);
Tailwind
colors: {
  custom: {
    50: '#a39afa',
    500: '#7172f6',
    950: '#000000',
  },
}
SCSS
$custom: #7172f6;
$custom-light: #a39afa;
$custom-dark: #000000;
JSON
{
  "hex": "#7172f6",
  "rgb": {
    "r": 113,
    "g": 114,
    "b": 246
  },
  "hsl": {
    "h": 239.549,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.61968,
    "c": 0.19269,
    "h": 278.9
  },
  "luminance": 0.22199
}

Semantic roles & 50–950 ramp

primary
#7172F6
secondary
#F4F3CF
accent
#E301E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7172F6

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

Preview Lab → · Contrast checker → · Palette generator →

#7172F6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva