#B138B4#B138B4

#B138B4 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.209 H 326.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B138B4
RGBrgb(177, 56, 180)
HSLhsl(299, 53%, 46%)
HSVhsv(299, 69%, 71%)
CMYKcmyk(1.7%, 68.9%, 0%, 29.4%)
CIE-LABlab(46.27, 63.41, -41.27)
CIE-LCHlch(46.27, 75.65, 326.94°)
OKLaboklab(56.42% 0.1754 -0.1144)
OKLCHoklch(56.42% 0.209 326.9)
XYZxyz(27.7834, 15.4726, 44.6943)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138B4 #3BB438
analogous
#7338B4 #B138B4 #B43879
triadic
#B138B4 #B4B138 #38B4B1
tetradic
#B138B4 #B47338 #3BB438 #3879B4
square
#B138B4 #B47338 #3BB438 #3879B4
split-complementary
#B138B4 #79B438 #38B473
monochromatic
#551B57 #832985 #B138B4 #CA5DCD #D98BDB

Accessibility & contrast

On white

5.13
#B138B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B138B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138B4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138B4#FFFFFF#000000##FFFFFF
##B138B41.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2164B8
Deuteranopia (green-blind)
#5573B1
Tritanopia (blue-blind)
#B64B72
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b138b4;
/* rgb */ color: rgb(177, 56, 180);
/* oklch */ color: oklch(56.4% 0.209 326.9);
Tailwind
colors: {
  custom: {
    50: '#cc79cb',
    500: '#b138b4',
    950: '#000000',
  },
}
SCSS
$custom: #b138b4;
$custom-light: #cc79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b138b4",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 298.548,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5642,
    "c": 0.20944,
    "h": 326.9
  },
  "luminance": 0.15471
}

Semantic roles & 50–950 ramp

primary
#B138B4
secondary
#84C582
accent
#DC4C4F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138B4

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

Preview Lab → · Contrast checker → · Palette generator →

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