#B138AA#B138AA

#B138AA is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.202 H 330.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B138AA
RGBrgb(177, 56, 170)
HSLhsl(303, 52%, 46%)
HSVhsv(303, 68%, 69%)
CMYKcmyk(0%, 68.4%, 4%, 30.6%)
CIE-LABlab(45.74, 61.74, -36.21)
CIE-LCHlch(45.74, 71.58, 329.61°)
OKLaboklab(55.86% 0.1751 -0.0997)
OKLCHoklch(55.86% 0.202 330.3)
XYZxyz(26.8012, 15.0797, 39.5215)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138AA #38B13F
analogous
#7B38B1 #B138AA #B1386D
triadic
#B138AA #AAB138 #38AAB1
tetradic
#B138AA #B17B38 #38B13F #386DB1
square
#B138AA #B17B38 #38B13F #386DB1
split-complementary
#B138AA #6DB138 #38B17B
monochromatic
#541B51 #83297D #B138AA #CB5BC5 #DA8AD5

Accessibility & contrast

On white

5.23
#B138AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B138AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138AA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138AA#FFFFFF#000000##FFFFFF
##B138AA1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D62AD
Deuteranopia (green-blind)
#5B72A7
Tritanopia (blue-blind)
#B8466D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b138aa;
/* rgb */ color: rgb(177, 56, 170);
/* oklch */ color: oklch(55.9% 0.202 330.3);
Tailwind
colors: {
  custom: {
    50: '#cc79c4',
    500: '#b138aa',
    950: '#000000',
  },
}
SCSS
$custom: #b138aa;
$custom-light: #cc79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b138aa",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 303.471,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.20151,
    "h": 330.3
  },
  "luminance": 0.15078
}

Semantic roles & 50–950 ramp

primary
#B138AA
secondary
#81C485
accent
#DB554C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #B138AA

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

Preview Lab → · Contrast checker → · Palette generator →

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