#7172CF#7172CF

#7172CF is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.5% C 0.140 H 280.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7172CF
RGBrgb(113, 114, 207)
HSLhsl(239, 49%, 63%)
HSVhsv(239, 45%, 81%)
CMYKcmyk(45.4%, 44.9%, 0%, 18.8%)
CIE-LABlab(51.89, 23.77, -48.37)
CIE-LCHlch(51.89, 53.90, 296.17°)
OKLaboklab(59.45% 0.0262 -0.137)
OKLCHoklch(59.45% 0.14 280.8)
XYZxyz(24.0865, 20.0492, 61.6201)
Luminance0.2005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7172CF #CFCE71
analogous
#71A1CF #7172CF #9F71CF
triadic
#7172CF #CF7172 #72CF71
tetradic
#7172CF #CF71A1 #CFCE71 #71CF9F
square
#7172CF #CF71A1 #CFCE71 #71CF9F
split-complementary
#7172CF #CF9F71 #A1CF71
monochromatic
#323394 #4345C0 #7172CF #9F9FDE #CCCDEE

Accessibility & contrast

On white

4.19
#7172CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7172CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7172CF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7172CF#FFFFFF#000000##000000
##7172CF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7FD2
Deuteranopia (green-blind)
#4778CD
Tritanopia (blue-blind)
#518596
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7172cf;
/* rgb */ color: rgb(113, 114, 207);
/* oklch */ color: oklch(59.5% 0.140 280.8);
Tailwind
colors: {
  custom: {
    50: '#9f9ade',
    500: '#7172cf',
    950: '#000000',
  },
}
SCSS
$custom: #7172cf;
$custom-light: #9f9ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7172cf",
  "rgb": {
    "r": 113,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 239.362,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59452,
    "c": 0.13953,
    "h": 280.8
  },
  "luminance": 0.2005
}

Semantic roles & 50–950 ramp

primary
#7172CF
secondary
#DFDFBD
accent
#BB29BD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7172CF

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

Preview Lab → · Contrast checker → · Palette generator →

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