#B138B1#B138B1

#B138B1 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.207 H 327.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B138B1
RGBrgb(177, 56, 177)
HSLhsl(300, 52%, 46%)
HSVhsv(300, 68%, 69%)
CMYKcmyk(0%, 68.4%, 0%, 30.6%)
CIE-LABlab(46.11, 62.90, -39.76)
CIE-LCHlch(46.11, 74.41, 327.70°)
OKLaboklab(56.25% 0.1754 -0.11)
OKLCHoklch(56.25% 0.207 327.9)
XYZxyz(27.4811, 15.3517, 43.1022)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138B1 #38B138
analogous
#7438B1 #B138B1 #B13874
triadic
#B138B1 #B1B138 #38B1B1
tetradic
#B138B1 #B17438 #38B138 #3874B1
square
#B138B1 #B17438 #38B138 #3874B1
split-complementary
#B138B1 #74B138 #38B174
monochromatic
#541B54 #832983 #B138B1 #CB5BCB #DA8ADA

Accessibility & contrast

On white

5.16
#B138B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B138B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138B1
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138B1#FFFFFF#000000##FFFFFF
##B138B11.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#5773AE
Tritanopia (blue-blind)
#B64970
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b138b1;
/* rgb */ color: rgb(177, 56, 177);
/* oklch */ color: oklch(56.3% 0.207 327.9);
Tailwind
colors: {
  custom: {
    50: '#cc79c9',
    500: '#b138b1',
    950: '#000000',
  },
}
SCSS
$custom: #b138b1;
$custom-light: #cc79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b138b1",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 300,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56251,
    "c": 0.20704,
    "h": 327.9
  },
  "luminance": 0.1535
}

Semantic roles & 50–950 ramp

primary
#B138B1
secondary
#81C481
accent
#DB4C4C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138B1

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

Preview Lab → · Contrast checker → · Palette generator →

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