#7166A2#7166A2

#7166A2 is a mid, moderate violet. Relative luminance 0.156; OKLCH L 54.6% C 0.093 H 291.4°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7166A2
RGBrgb(113, 102, 162)
HSLhsl(251, 24%, 52%)
HSVhsv(251, 37%, 64%)
CMYKcmyk(30.2%, 37%, 0%, 36.5%)
CIE-LABlab(46.47, 18.28, -30.89)
CIE-LCHlch(46.47, 35.89, 300.62°)
OKLaboklab(54.57% 0.0338 -0.0861)
OKLCHoklch(54.57% 0.093 291.4)
XYZxyz(18.0814, 15.6218, 36.2381)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7166A2 #97A266
analogous
#6679A2 #7166A2 #8F66A2
triadic
#7166A2 #A27166 #66A271
tetradic
#7166A2 #A26679 #97A266 #66A28F
square
#7166A2 #A26679 #97A266 #66A28F
split-complementary
#7166A2 #A28F66 #79A266
monochromatic
#3C3658 #564D7E #7166A2 #948CB9 #B8B2D0

Accessibility & contrast

On white

5.09
#7166A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7166A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7166A2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7166A2#FFFFFF#000000##FFFFFF
##7166A21.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556FA4
Deuteranopia (green-blind)
#566DA0
Tritanopia (blue-blind)
#66717C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7166a2;
/* rgb */ color: rgb(113, 102, 162);
/* oklch */ color: oklch(54.6% 0.093 291.4);
Tailwind
colors: {
  custom: {
    50: '#9b91be',
    500: '#7166a2',
    950: '#000000',
  },
}
SCSS
$custom: #7166a2;
$custom-light: #9b91be;
$custom-dark: #000000;
JSON
{
  "hex": "#7166a2",
  "rgb": {
    "r": 113,
    "g": 102,
    "b": 162
  },
  "hsl": {
    "h": 251,
    "s": 24.39,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54571,
    "c": 0.09254,
    "h": 291.4
  },
  "luminance": 0.15622
}

Semantic roles & 50–950 ramp

primary
#7166A2
secondary
#BABFA5
accent
#C167B0
background
#F9F8FB
surface
#F2F0F6
border
#CCCBD0
text
#0E0C12
muted
#7E7D81

Preview Lab

Preview with #7166A2

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

Preview Lab → · Contrast checker → · Palette generator →

#7166A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva