#B138A6#B138A6

#B138A6 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.7% C 0.198 H 331.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B138A6
RGBrgb(177, 56, 166)
HSLhsl(305, 52%, 46%)
HSVhsv(305, 68%, 69%)
CMYKcmyk(0%, 68.4%, 6.2%, 30.6%)
CIE-LABlab(45.54, 61.09, -34.16)
CIE-LCHlch(45.54, 70.00, 330.79°)
OKLaboklab(55.65% 0.1748 -0.0938)
OKLCHoklch(55.65% 0.198 331.8)
XYZxyz(26.4286, 14.9307, 37.5590)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138A6 #38B143
analogous
#8038B1 #B138A6 #B13869
triadic
#B138A6 #A6B138 #38A6B1
tetradic
#B138A6 #B18038 #38B143 #3869B1
square
#B138A6 #B18038 #38B143 #3869B1
split-complementary
#B138A6 #69B138 #38B180
monochromatic
#541B4F #83297A #B138A6 #CB5BC1 #DA8AD3

Accessibility & contrast

On white

5.27
#B138A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B138A6
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138A6#FFFFFF#000000##FFFFFF
##B138A61.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161A9
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#B8446A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b138a6;
/* rgb */ color: rgb(177, 56, 166);
/* oklch */ color: oklch(55.7% 0.198 331.8);
Tailwind
colors: {
  custom: {
    50: '#cc79c1',
    500: '#b138a6',
    950: '#000000',
  },
}
SCSS
$custom: #b138a6;
$custom-light: #cc79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b138a6",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 166
  },
  "hsl": {
    "h": 305.455,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55652,
    "c": 0.19842,
    "h": 331.8
  },
  "luminance": 0.14929
}

Semantic roles & 50–950 ramp

primary
#B138A6
secondary
#81C487
accent
#DB594C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B138A6

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

Preview Lab → · Contrast checker → · Palette generator →

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