#7172CD#7172CD

#7172CD is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.3% C 0.137 H 280.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7172CD
RGBrgb(113, 114, 205)
HSLhsl(239, 48%, 62%)
HSVhsv(239, 45%, 80%)
CMYKcmyk(44.9%, 44.4%, 0%, 19.6%)
CIE-LABlab(51.78, 23.17, -47.41)
CIE-LCHlch(51.78, 52.77, 296.05°)
OKLaboklab(59.33% 0.0259 -0.1342)
OKLCHoklch(59.33% 0.137 280.9)
XYZxyz(23.8435, 19.9520, 60.3405)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7172CD #CDCC71
analogous
#71A0CD #7172CD #9E71CD
triadic
#7172CD #CD7172 #72CD71
tetradic
#7172CD #CD71A0 #CDCC71 #71CD9E
square
#7172CD #CD71A0 #CDCC71 #71CD9E
split-complementary
#7172CD #CD9E71 #A0CD71
monochromatic
#333491 #4445BD #7172CD #9E9FDD #CCCCED

Accessibility & contrast

On white

4.21
#7172CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7172CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7172CD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7172CD#FFFFFF#000000##000000
##7172CD1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FD0
Deuteranopia (green-blind)
#4978CB
Tritanopia (blue-blind)
#528595
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7172cd;
/* rgb */ color: rgb(113, 114, 205);
/* oklch */ color: oklch(59.3% 0.137 280.9);
Tailwind
colors: {
  custom: {
    50: '#9e9add',
    500: '#7172cd',
    950: '#000000',
  },
}
SCSS
$custom: #7172cd;
$custom-light: #9e9add;
$custom-dark: #000000;
JSON
{
  "hex": "#7172cd",
  "rgb": {
    "r": 113,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 239.348,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59332,
    "c": 0.1367,
    "h": 280.9
  },
  "luminance": 0.19953
}

Semantic roles & 50–950 ramp

primary
#7172CD
secondary
#DEDDBC
accent
#BA2ABB
background
#FAF9FD
surface
#F3F2FB
border
#CDCCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7172CD

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

Preview Lab → · Contrast checker → · Palette generator →

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