#B138A7#B138A7

#B138A7 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.7% C 0.199 H 331.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B138A7
RGBrgb(177, 56, 167)
HSLhsl(305, 52%, 46%)
HSVhsv(305, 68%, 69%)
CMYKcmyk(0%, 68.4%, 5.6%, 30.6%)
CIE-LABlab(45.59, 61.25, -34.68)
CIE-LCHlch(45.59, 70.39, 330.49°)
OKLaboklab(55.71% 0.1749 -0.0953)
OKLCHoklch(55.71% 0.199 331.4)
XYZxyz(26.5207, 14.9675, 38.0439)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138A7 #38B142
analogous
#7E38B1 #B138A7 #B1386A
triadic
#B138A7 #A7B138 #38A7B1
tetradic
#B138A7 #B17E38 #38B142 #386AB1
square
#B138A7 #B17E38 #38B142 #386AB1
split-complementary
#B138A7 #6AB138 #38B17E
monochromatic
#541B4F #83297B #B138A7 #CB5BC2 #DA8AD3

Accessibility & contrast

On white

5.26
#B138A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B138A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138A7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138A7#FFFFFF#000000##FFFFFF
##B138A71.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061AA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#B8456B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b138a7;
/* rgb */ color: rgb(177, 56, 167);
/* oklch */ color: oklch(55.7% 0.199 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc79c1',
    500: '#b138a7',
    950: '#000000',
  },
}
SCSS
$custom: #b138a7;
$custom-light: #cc79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b138a7",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 304.959,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55705,
    "c": 0.19919,
    "h": 331.4
  },
  "luminance": 0.14965
}

Semantic roles & 50–950 ramp

primary
#B138A7
secondary
#81C486
accent
#DB584C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B138A7

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

Preview Lab → · Contrast checker → · Palette generator →

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