#7172EA#7172EA

#7172EA is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.2% C 0.177 H 279.4°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7172EA
RGBrgb(113, 114, 234)
HSLhsl(240, 74%, 68%)
HSVhsv(240, 52%, 92%)
CMYKcmyk(51.7%, 51.3%, 0%, 8.2%)
CIE-LABlab(53.48, 31.93, -61.07)
CIE-LCHlch(53.48, 68.92, 297.60°)
OKLaboklab(61.16% 0.029 -0.1743)
OKLCHoklch(61.16% 0.177 279.4)
XYZxyz(27.6740, 21.4842, 80.5146)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7172EA #EAE971
analogous
#71AEEA #7172EA #AC71EA
triadic
#7172EA #EA7172 #72EA71
tetradic
#7172EA #EA71AE #EAE971 #71EAAC
square
#7172EA #EA71AE #EAE971 #71EAAC
split-complementary
#7172EA #EAAC71 #AEEA71
monochromatic
#1D1EC4 #3C3DE2 #7172EA #A6A7F2 #DCDCFA

Accessibility & contrast

On white

3.96
#7172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#7172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7172EA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7172EA#FFFFFF#000000##000000
##7172EA1.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)
#3385EE
Deuteranopia (green-blind)
#247BE7
Tritanopia (blue-blind)
#3D8DA3
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7172ea;
/* rgb */ color: rgb(113, 114, 234);
/* oklch */ color: oklch(61.2% 0.177 279.4);
Tailwind
colors: {
  custom: {
    50: '#a29af1',
    500: '#7172ea',
    950: '#000000',
  },
}
SCSS
$custom: #7172ea;
$custom-light: #a29af1;
$custom-dark: #000000;
JSON
{
  "hex": "#7172ea",
  "rgb": {
    "r": 113,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 239.504,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61156,
    "c": 0.17673,
    "h": 279.4
  },
  "luminance": 0.21486
}

Semantic roles & 50–950 ramp

primary
#7172EA
secondary
#EEEEC9
accent
#D50FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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