#7172EF#7172EF

#7172EF is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.5% C 0.183 H 279.2°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7172EF
RGBrgb(113, 114, 239)
HSLhsl(240, 80%, 69%)
HSVhsv(240, 53%, 94%)
CMYKcmyk(52.7%, 52.3%, 0%, 6.3%)
CIE-LABlab(53.79, 33.47, -63.36)
CIE-LCHlch(53.79, 71.66, 297.84°)
OKLaboklab(61.49% 0.0293 -0.1811)
OKLCHoklch(61.49% 0.183 279.2)
XYZxyz(28.4025, 21.7756, 84.3511)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7172EF #EFEE71
analogous
#71B1EF #7172EF #AF71EF
triadic
#7172EF #EF7172 #72EF71
tetradic
#7172EF #EF71B1 #EFEE71 #71EFAF
square
#7172EF #EF71B1 #EFEE71 #71EFAF
split-complementary
#7172EF #EFAF71 #B1EF71
monochromatic
#1719CE #3A3BE9 #7172EF #A8A9F5 #DFDFFB

Accessibility & contrast

On white

3.92
#7172EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7172EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7172EF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7172EF#FFFFFF#000000##000000
##7172EF1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C86F3
Deuteranopia (green-blind)
#177CEC
Tritanopia (blue-blind)
#388EA6
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7172ef;
/* rgb */ color: rgb(113, 114, 239);
/* oklch */ color: oklch(61.5% 0.183 279.2);
Tailwind
colors: {
  custom: {
    50: '#a29af5',
    500: '#7172ef',
    950: '#000000',
  },
}
SCSS
$custom: #7172ef;
$custom-light: #a29af5;
$custom-dark: #000000;
JSON
{
  "hex": "#7172ef",
  "rgb": {
    "r": 113,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 239.524,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.6149,
    "c": 0.18343,
    "h": 279.2
  },
  "luminance": 0.21777
}

Semantic roles & 50–950 ramp

primary
#7172EF
secondary
#F0F0CB
accent
#DA09DC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7172EF

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

Preview Lab → · Contrast checker → · Palette generator →

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