#B138BF#B138BF

#B138BF is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.1% C 0.218 H 323.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B138BF
RGBrgb(177, 56, 191)
HSLhsl(294, 55%, 48%)
HSVhsv(294, 71%, 75%)
CMYKcmyk(7.3%, 70.7%, 0%, 25.1%)
CIE-LABlab(46.89, 65.31, -46.71)
CIE-LCHlch(46.89, 80.30, 324.43°)
OKLaboklab(57.06% 0.1753 -0.1302)
OKLCHoklch(57.06% 0.218 323.4)
XYZxyz(28.9487, 15.9388, 50.8318)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138BF #46BF38
analogous
#6D38BF #B138BF #BF3889
triadic
#B138BF #BFB138 #38BFB1
tetradic
#B138BF #BF6D38 #46BF38 #3889BF
square
#B138BF #BF6D38 #46BF38 #3889BF
split-complementary
#B138BF #89BF38 #38BF6D
monochromatic
#591C60 #852A90 #B138BF #C663D1 #D792DF

Accessibility & contrast

On white

5.02
#B138BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B138BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138BF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138BF#FFFFFF#000000##FFFFFF
##B138BF1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0666C3
Deuteranopia (green-blind)
#4E74BC
Tritanopia (blue-blind)
#B45078
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b138bf;
/* rgb */ color: rgb(177, 56, 191);
/* oklch */ color: oklch(57.1% 0.218 323.4);
Tailwind
colors: {
  custom: {
    50: '#cc7ad3',
    500: '#b138bf',
    950: '#000000',
  },
}
SCSS
$custom: #b138bf;
$custom-light: #cc7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#b138bf",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 293.778,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57064,
    "c": 0.21842,
    "h": 323.4
  },
  "luminance": 0.15937
}

Semantic roles & 50–950 ramp

primary
#B138BF
secondary
#8FCA89
accent
#DE4A59
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B138BF

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

Preview Lab → · Contrast checker → · Palette generator →

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