#B138BC#B138BC

#B138BC is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.216 H 324.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B138BC
RGBrgb(177, 56, 188)
HSLhsl(295, 54%, 48%)
HSVhsv(295, 70%, 74%)
CMYKcmyk(5.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(46.72, 64.79, -45.24)
CIE-LCHlch(46.72, 79.02, 325.07°)
OKLaboklab(56.89% 0.1754 -0.1259)
OKLCHoklch(56.89% 0.216 324.3)
XYZxyz(28.6220, 15.8081, 49.1109)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138BC #43BC38
analogous
#6F38BC #B138BC #BC3885
triadic
#B138BC #BCB138 #38BCB1
tetradic
#B138BC #BC6F38 #43BC38 #3885BC
square
#B138BC #BC6F38 #43BC38 #3885BC
split-complementary
#B138BC #85BC38 #38BC6F
monochromatic
#581C5E #852A8D #B138BC #C761D0 #D890DE

Accessibility & contrast

On white

5.05
#B138BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B138BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138BC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138BC#FFFFFF#000000##FFFFFF
##B138BC1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1165C0
Deuteranopia (green-blind)
#5074B9
Tritanopia (blue-blind)
#B44E76
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b138bc;
/* rgb */ color: rgb(177, 56, 188);
/* oklch */ color: oklch(56.9% 0.216 324.3);
Tailwind
colors: {
  custom: {
    50: '#cc7ad1',
    500: '#b138bc',
    950: '#000000',
  },
}
SCSS
$custom: #b138bc;
$custom-light: #cc7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b138bc",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 295,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56885,
    "c": 0.21595,
    "h": 324.3
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#B138BC
secondary
#8CC987
accent
#DD4A57
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B138BC

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

Preview Lab → · Contrast checker → · Palette generator →

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