#7172CA#7172CA

#7172CA is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.2% C 0.132 H 281.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7172CA
RGBrgb(113, 114, 202)
HSLhsl(239, 46%, 62%)
HSVhsv(239, 44%, 79%)
CMYKcmyk(44.1%, 43.6%, 0%, 20.8%)
CIE-LABlab(51.62, 22.29, -45.96)
CIE-LCHlch(51.62, 51.08, 295.87°)
OKLaboklab(59.16% 0.0254 -0.13)
OKLCHoklch(59.16% 0.132 281.1)
XYZxyz(23.4849, 19.8085, 58.4517)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7172CA #CAC971
analogous
#719FCA #7172CA #9D71CA
triadic
#7172CA #CA7172 #72CA71
tetradic
#7172CA #CA719F #CAC971 #71CA9D
square
#7172CA #CA719F #CAC971 #71CA9D
split-complementary
#7172CA #CA9D71 #9FCA71
monochromatic
#34358C #4546B9 #7172CA #9E9EDB #CACBEB

Accessibility & contrast

On white

4.23
#7172CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7172CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7172CA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7172CA#FFFFFF#000000##000000
##7172CA1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#517ECD
Deuteranopia (green-blind)
#4B78C8
Tritanopia (blue-blind)
#548494
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7172ca;
/* rgb */ color: rgb(113, 114, 202);
/* oklch */ color: oklch(59.2% 0.132 281.1);
Tailwind
colors: {
  custom: {
    50: '#9e9ada',
    500: '#7172ca',
    950: '#000000',
  },
}
SCSS
$custom: #7172ca;
$custom-light: #9e9ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7172ca",
  "rgb": {
    "r": 113,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 239.326,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59156,
    "c": 0.13244,
    "h": 281.1
  },
  "luminance": 0.1981
}

Semantic roles & 50–950 ramp

primary
#7172CA
secondary
#DCDCBB
accent
#B72DB9
background
#FAF9FD
surface
#F3F2FB
border
#CDCCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7172CA

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

Preview Lab → · Contrast checker → · Palette generator →

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