#B17EC2#B17EC2

#B17EC2 is a light, moderate purple. Relative luminance 0.282; OKLCH L 66.8% C 0.113 H 317.5°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#B17EC2
RGBrgb(177, 126, 194)
HSLhsl(285, 36%, 63%)
HSVhsv(285, 35%, 76%)
CMYKcmyk(8.8%, 35.1%, 0%, 23.9%)
CIE-LABlab(60.04, 31.75, -27.80)
CIE-LCHlch(60.04, 42.20, 318.80°)
OKLaboklab(66.82% 0.083 -0.0762)
OKLCHoklch(66.82% 0.113 317.5)
XYZxyz(35.3285, 28.1647, 54.6038)
Luminance0.2816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17EC2 #8FC27E
analogous
#8F7EC2 #B17EC2 #C27EB1
triadic
#B17EC2 #C2B17E #7EC2B1
tetradic
#B17EC2 #C28F7E #8FC27E #7EB1C2
square
#B17EC2 #C28F7E #8FC27E #7EB1C2
split-complementary
#B17EC2 #B1C27E #7EC28F
monochromatic
#743F86 #9854AE #B17EC2 #CAA8D6 #E3D1E9

Accessibility & contrast

On white

3.17
#B17EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#B17EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B17EC2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17EC2#FFFFFF#000000##000000
##B17EC21.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#748DC5
Deuteranopia (green-blind)
#8192C0
Tritanopia (blue-blind)
#B18697
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b17ec2;
/* rgb */ color: rgb(177, 126, 194);
/* oklch */ color: oklch(66.8% 0.113 317.5);
Tailwind
colors: {
  custom: {
    50: '#c9a4d4',
    500: '#b17ec2',
    950: '#000000',
  },
}
SCSS
$custom: #b17ec2;
$custom-light: #c9a4d4;
$custom-dark: #000000;
JSON
{
  "hex": "#b17ec2",
  "rgb": {
    "r": 177,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 285,
    "s": 35.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.66817,
    "c": 0.11264,
    "h": 317.5
  },
  "luminance": 0.28164
}

Semantic roles & 50–950 ramp

primary
#B17EC2
secondary
#C8DAC2
accent
#AF3755
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#130F14
muted
#827F83

Preview Lab

Preview with #B17EC2

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

Preview Lab → · Contrast checker → · Palette generator →

#B17EC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva