#7172F4#7172F4

#7172F4 is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.8% C 0.190 H 278.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7172F4
RGBrgb(113, 114, 244)
HSLhsl(240, 86%, 70%)
HSVhsv(240, 54%, 96%)
CMYKcmyk(53.7%, 53.3%, 0%, 4.3%)
CIE-LABlab(54.11, 35.01, -65.63)
CIE-LCHlch(54.11, 74.38, 298.08°)
OKLaboklab(61.83% 0.0296 -0.1877)
OKLCHoklch(61.83% 0.19 278.9)
XYZxyz(29.1514, 22.0751, 88.2952)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7172F4 #F4F371
analogous
#71B3F4 #7172F4 #B271F4
triadic
#7172F4 #F47172 #72F471
tetradic
#7172F4 #F471B3 #F4F371 #71F4B2
square
#7172F4 #F471B3 #F4F371 #71F4B2
split-complementary
#7172F4 #F4B271 #B3F471
monochromatic
#1112DA #383AF0 #7172F4 #AAAAF8 #E3E3FD

Accessibility & contrast

On white

3.88
#7172F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#7172F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7172F4
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7172F4#FFFFFF#000000##000000
##7172F41.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2387F8
Deuteranopia (green-blind)
#007CF1
Tritanopia (blue-blind)
#3390A8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7172f4;
/* rgb */ color: rgb(113, 114, 244);
/* oklch */ color: oklch(61.8% 0.190 278.9);
Tailwind
colors: {
  custom: {
    50: '#a39af8',
    500: '#7172f4',
    950: '#000000',
  },
}
SCSS
$custom: #7172f4;
$custom-light: #a39af8;
$custom-dark: #000000;
JSON
{
  "hex": "#7172f4",
  "rgb": {
    "r": 113,
    "g": 114,
    "b": 244
  },
  "hsl": {
    "h": 239.542,
    "s": 85.621,
    "l": 70
  },
  "oklch": {
    "l": 0.6183,
    "c": 0.19005,
    "h": 278.9
  },
  "luminance": 0.22077
}

Semantic roles & 50–950 ramp

primary
#7172F4
secondary
#F3F2CE
accent
#E003E2
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7172F4

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

Preview Lab → · Contrast checker → · Palette generator →

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