#B138AF#B138AF

#B138AF is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.205 H 328.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B138AF
RGBrgb(177, 56, 175)
HSLhsl(301, 52%, 46%)
HSVhsv(301, 68%, 69%)
CMYKcmyk(0%, 68.4%, 1.1%, 30.6%)
CIE-LABlab(46.01, 62.57, -38.75)
CIE-LCHlch(46.01, 73.59, 328.23°)
OKLaboklab(56.14% 0.1753 -0.1071)
OKLCHoklch(56.14% 0.205 328.6)
XYZxyz(27.2832, 15.2725, 42.0600)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138AF #38B13A
analogous
#7638B1 #B138AF #B13872
triadic
#B138AF #AFB138 #38AFB1
tetradic
#B138AF #B17638 #38B13A #3872B1
square
#B138AF #B17638 #38B13A #3872B1
split-complementary
#B138AF #72B138 #38B176
monochromatic
#541B53 #832981 #B138AF #CB5BC9 #DA8AD9

Accessibility & contrast

On white

5.18
#B138AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B138AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138AF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138AF#FFFFFF#000000##FFFFFF
##B138AF1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B2
Deuteranopia (green-blind)
#5873AC
Tritanopia (blue-blind)
#B7486F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b138af;
/* rgb */ color: rgb(177, 56, 175);
/* oklch */ color: oklch(56.1% 0.205 328.6);
Tailwind
colors: {
  custom: {
    50: '#cc79c7',
    500: '#b138af',
    950: '#000000',
  },
}
SCSS
$custom: #b138af;
$custom-light: #cc79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b138af",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 300.992,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56139,
    "c": 0.20545,
    "h": 328.6
  },
  "luminance": 0.15271
}

Semantic roles & 50–950 ramp

primary
#B138AF
secondary
#81C482
accent
#DB4F4C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B138AF

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

Preview Lab → · Contrast checker → · Palette generator →

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