#B117A7#B117A7

#B117A7 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.229 H 331.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#B117A7
RGBrgb(177, 23, 167)
HSLhsl(304, 77%, 39%)
HSVhsv(304, 87%, 69%)
CMYKcmyk(0%, 87%, 5.6%, 30.6%)
CIE-LABlab(42.39, 70.44, -39.74)
CIE-LCHlch(42.39, 80.88, 330.57°)
OKLaboklab(53.41% 0.2015 -0.1097)
OKLCHoklch(53.41% 0.229 331.4)
XYZxyz(25.4130, 12.7521, 37.6747)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B117A7 #17B121
analogous
#6E17B1 #B117A7 #B1175A
triadic
#B117A7 #A7B117 #17A7B1
tetradic
#B117A7 #B16E17 #17B121 #175AB1
square
#B117A7 #B16E17 #17B121 #175AB1
split-complementary
#B117A7 #5AB117 #17B16E
monochromatic
#450941 #7B1074 #B117A7 #E223D6 #E959E0

Accessibility & contrast

On white

5.92
#B117A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B117A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B117A7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B117A7#FFFFFF#000000##FFFFFF
##B117A71.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#506BA4
Tritanopia (blue-blind)
#B93163
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b117a7;
/* rgb */ color: rgb(177, 23, 167);
/* oklch */ color: oklch(53.4% 0.229 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd6dc2',
    500: '#b117a7',
    950: '#000000',
  },
}
SCSS
$custom: #b117a7;
$custom-light: #cd6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#b117a7",
  "rgb": {
    "r": 177,
    "g": 23,
    "b": 167
  },
  "hsl": {
    "h": 303.896,
    "s": 77,
    "l": 39.216
  },
  "oklch": {
    "l": 0.53413,
    "c": 0.22948,
    "h": 331.4
  },
  "luminance": 0.1275
}

Semantic roles & 50–950 ramp

primary
#B117A7
secondary
#57CD5F
accent
#F44134
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B117A7

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

Preview Lab → · Contrast checker → · Palette generator →

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