#B138A2#B138A2

#B138A2 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.4% C 0.195 H 333.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B138A2
RGBrgb(177, 56, 162)
HSLhsl(307, 52%, 46%)
HSVhsv(307, 68%, 69%)
CMYKcmyk(0%, 68.4%, 8.5%, 30.6%)
CIE-LABlab(45.34, 60.46, -32.10)
CIE-LCHlch(45.34, 68.45, 332.04°)
OKLaboklab(55.44% 0.1745 -0.0879)
OKLCHoklch(55.44% 0.195 333.3)
XYZxyz(26.0673, 14.7862, 35.6565)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138A2 #38B147
analogous
#8338B1 #B138A2 #B13865
triadic
#B138A2 #A2B138 #38A2B1
tetradic
#B138A2 #B18338 #38B147 #3865B1
square
#B138A2 #B18338 #38B147 #3865B1
split-complementary
#B138A2 #65B138 #38B183
monochromatic
#541B4D #832977 #B138A2 #CB5BBD #DA8AD0

Accessibility & contrast

On white

5.31
#B138A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B138A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138A2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138A2#FFFFFF#000000##FFFFFF
##B138A21.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#5E729F
Tritanopia (blue-blind)
#B94368
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b138a2;
/* rgb */ color: rgb(177, 56, 162);
/* oklch */ color: oklch(55.4% 0.195 333.3);
Tailwind
colors: {
  custom: {
    50: '#cc79be',
    500: '#b138a2',
    950: '#000000',
  },
}
SCSS
$custom: #b138a2;
$custom-light: #cc79be;
$custom-dark: #000000;
JSON
{
  "hex": "#b138a2",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 307.438,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55443,
    "c": 0.19538,
    "h": 333.3
  },
  "luminance": 0.14784
}

Semantic roles & 50–950 ramp

primary
#B138A2
secondary
#81C489
accent
#DB5E4C
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B138A2

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

Preview Lab → · Contrast checker → · Palette generator →

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