#B138C7#B138C7

#B138C7 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.225 H 321.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B138C7
RGBrgb(177, 56, 199)
HSLhsl(291, 56%, 50%)
HSVhsv(291, 72%, 78%)
CMYKcmyk(11.1%, 71.9%, 0%, 22%)
CIE-LABlab(47.37, 66.75, -50.60)
CIE-LCHlch(47.37, 83.76, 322.83°)
OKLaboklab(57.55% 0.175 -0.1416)
OKLCHoklch(57.55% 0.225 321)
XYZxyz(29.8533, 16.3006, 55.5956)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138C7 #4EC738
analogous
#6938C7 #B138C7 #C73896
triadic
#B138C7 #C7B138 #38C7B1
tetradic
#B138C7 #C76938 #4EC738 #3896C7
square
#B138C7 #C76938 #4EC738 #3896C7
split-complementary
#B138C7 #96C738 #38C769
monochromatic
#5C1D67 #872B97 #B138C7 #C468D4 #D698E2

Accessibility & contrast

On white

4.93
#B138C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B138C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138C7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138C7#FFFFFF#000000##FFFFFF
##B138C71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#4875C4
Tritanopia (blue-blind)
#B2537C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b138c7;
/* rgb */ color: rgb(177, 56, 199);
/* oklch */ color: oklch(57.6% 0.225 321.0);
Tailwind
colors: {
  custom: {
    50: '#cc7ad9',
    500: '#b138c7',
    950: '#000000',
  },
}
SCSS
$custom: #b138c7;
$custom-light: #cc7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#b138c7",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 290.769,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.57553,
    "c": 0.22507,
    "h": 321
  },
  "luminance": 0.16299
}

Semantic roles & 50–950 ramp

primary
#B138C7
secondary
#97CD8D
accent
#DF4860
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A15
muted
#837C83

Preview Lab

Preview with #B138C7

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

Preview Lab → · Contrast checker → · Palette generator →

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