#7166BA#7166BA

#7166BA is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.9% C 0.127 H 287.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7166BA
RGBrgb(113, 102, 186)
HSLhsl(248, 38%, 56%)
HSVhsv(248, 45%, 73%)
CMYKcmyk(39.2%, 45.2%, 0%, 27.1%)
CIE-LABlab(47.70, 24.91, -42.99)
CIE-LCHlch(47.70, 49.68, 300.09°)
OKLaboklab(55.9% 0.0384 -0.1213)
OKLCHoklch(55.9% 0.127 287.5)
XYZxyz(20.4219, 16.5580, 48.5649)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7166BA #AFBA66
analogous
#6685BA #7166BA #9B66BA
triadic
#7166BA #BA7166 #66BA71
tetradic
#7166BA #BA6685 #AFBA66 #66BA9B
square
#7166BA #BA6685 #AFBA66 #66BA9B
split-complementary
#7166BA #BA9B66 #85BA66
monochromatic
#3C3372 #52469C #7166BA #9890CD #BFBAE0

Accessibility & contrast

On white

4.87
#7166BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7166BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7166BA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7166BA#FFFFFF#000000##FFFFFF
##7166BA1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4873BD
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#5D7787
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7166ba;
/* rgb */ color: rgb(113, 102, 186);
/* oklch */ color: oklch(55.9% 0.127 287.5);
Tailwind
colors: {
  custom: {
    50: '#9d91cf',
    500: '#7166ba',
    950: '#000000',
  },
}
SCSS
$custom: #7166ba;
$custom-light: #9d91cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7166ba",
  "rgb": {
    "r": 113,
    "g": 102,
    "b": 186
  },
  "hsl": {
    "h": 247.857,
    "s": 37.838,
    "l": 56.471
  },
  "oklch": {
    "l": 0.559,
    "c": 0.12725,
    "h": 287.5
  },
  "luminance": 0.16559
}

Semantic roles & 50–950 ramp

primary
#7166BA
secondary
#CBCFAD
accent
#CE5ABF
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0F0D14
muted
#7E7D82

Preview Lab

Preview with #7166BA

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

Preview Lab → · Contrast checker → · Palette generator →

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