#B138B5#B138B5

#B138B5 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.210 H 326.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B138B5
RGBrgb(177, 56, 181)
HSLhsl(298, 53%, 46%)
HSVhsv(298, 69%, 71%)
CMYKcmyk(2.2%, 69.1%, 0%, 29%)
CIE-LABlab(46.33, 63.58, -41.77)
CIE-LCHlch(46.33, 76.07, 326.70°)
OKLaboklab(56.48% 0.1755 -0.1158)
OKLCHoklch(56.48% 0.21 326.6)
XYZxyz(27.8856, 15.5135, 45.2328)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138B5 #3CB538
analogous
#7338B5 #B138B5 #B5387B
triadic
#B138B5 #B5B138 #38B5B1
tetradic
#B138B5 #B57338 #3CB538 #387BB5
square
#B138B5 #B57338 #3CB538 #387BB5
split-complementary
#B138B5 #7BB538 #38B573
monochromatic
#561B58 #832A86 #B138B5 #C95DCD #D98CDB

Accessibility & contrast

On white

5.12
#B138B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B138B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138B5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138B5#FFFFFF#000000##FFFFFF
##B138B51.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F64B9
Deuteranopia (green-blind)
#5573B2
Tritanopia (blue-blind)
#B64B72
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b138b5;
/* rgb */ color: rgb(177, 56, 181);
/* oklch */ color: oklch(56.5% 0.210 326.6);
Tailwind
colors: {
  custom: {
    50: '#cc79cc',
    500: '#b138b5',
    950: '#000000',
  },
}
SCSS
$custom: #b138b5;
$custom-light: #cc79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b138b5",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 298.08,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56477,
    "c": 0.21025,
    "h": 326.6
  },
  "luminance": 0.15512
}

Semantic roles & 50–950 ramp

primary
#B138B5
secondary
#85C683
accent
#DC4C50
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138B5

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

Preview Lab → · Contrast checker → · Palette generator →

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