#B138AB#B138AB

#B138AB is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.202 H 330.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B138AB
RGBrgb(177, 56, 171)
HSLhsl(303, 52%, 46%)
HSVhsv(303, 68%, 69%)
CMYKcmyk(0%, 68.4%, 3.4%, 30.6%)
CIE-LABlab(45.80, 61.90, -36.72)
CIE-LCHlch(45.80, 71.98, 329.32°)
OKLaboklab(55.92% 0.1752 -0.1012)
OKLCHoklch(55.92% 0.202 330)
XYZxyz(26.8962, 15.1177, 40.0216)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138AB #38B13E
analogous
#7A38B1 #B138AB #B1386E
triadic
#B138AB #ABB138 #38ABB1
tetradic
#B138AB #B17A38 #38B13E #386EB1
square
#B138AB #B17A38 #38B13E #386EB1
split-complementary
#B138AB #6EB138 #38B17A
monochromatic
#541B51 #83297E #B138AB #CB5BC6 #DA8AD6

Accessibility & contrast

On white

5.22
#B138AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B138AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138AB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138AB#FFFFFF#000000##FFFFFF
##B138AB1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#B7476D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b138ab;
/* rgb */ color: rgb(177, 56, 171);
/* oklch */ color: oklch(55.9% 0.202 330.0);
Tailwind
colors: {
  custom: {
    50: '#cc79c4',
    500: '#b138ab',
    950: '#000000',
  },
}
SCSS
$custom: #b138ab;
$custom-light: #cc79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b138ab",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 302.975,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5592,
    "c": 0.20229,
    "h": 330
  },
  "luminance": 0.15116
}

Semantic roles & 50–950 ramp

primary
#B138AB
secondary
#81C484
accent
#DB544C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138AB

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

Preview Lab → · Contrast checker → · Palette generator →

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