#B138B2#B138B2

#B138B2 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.3% C 0.208 H 327.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#B138B2
RGBrgb(177, 56, 178)
HSLhsl(300, 52%, 46%)
HSVhsv(300, 69%, 70%)
CMYKcmyk(0.6%, 68.5%, 0%, 30.2%)
CIE-LABlab(46.17, 63.07, -40.26)
CIE-LCHlch(46.17, 74.82, 327.44°)
OKLaboklab(56.31% 0.1754 -0.1115)
OKLCHoklch(56.31% 0.208 327.6)
XYZxyz(27.5811, 15.3917, 43.6290)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138B2 #39B238
analogous
#7438B2 #B138B2 #B23876
triadic
#B138B2 #B2B138 #38B2B1
tetradic
#B138B2 #B27438 #39B238 #3876B2
square
#B138B2 #B27438 #39B238 #3876B2
split-complementary
#B138B2 #76B238 #38B274
monochromatic
#541B55 #832983 #B138B2 #CB5CCC #DA8ADA

Accessibility & contrast

On white

5.15
#B138B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#B138B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138B2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138B2#FFFFFF#000000##FFFFFF
##B138B21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#5673AF
Tritanopia (blue-blind)
#B64A71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b138b2;
/* rgb */ color: rgb(177, 56, 178);
/* oklch */ color: oklch(56.3% 0.208 327.6);
Tailwind
colors: {
  custom: {
    50: '#cc79c9',
    500: '#b138b2',
    950: '#000000',
  },
}
SCSS
$custom: #b138b2;
$custom-light: #cc79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b138b2",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 299.508,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56307,
    "c": 0.20784,
    "h": 327.6
  },
  "luminance": 0.1539
}

Semantic roles & 50–950 ramp

primary
#B138B2
secondary
#82C581
accent
#DC4C4D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138B2

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

Preview Lab → · Contrast checker → · Palette generator →

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