#B138C2#B138C2

#B138C2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.221 H 322.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B138C2
RGBrgb(177, 56, 194)
HSLhsl(293, 55%, 49%)
HSVhsv(293, 71%, 76%)
CMYKcmyk(8.8%, 71.1%, 0%, 23.9%)
CIE-LABlab(47.07, 65.85, -48.18)
CIE-LCHlch(47.07, 81.59, 323.81°)
OKLaboklab(57.25% 0.1752 -0.1345)
OKLCHoklch(57.25% 0.221 322.5)
XYZxyz(29.2823, 16.0722, 52.5883)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138C2 #49C238
analogous
#6C38C2 #B138C2 #C2388E
triadic
#B138C2 #C2B138 #38C2B1
tetradic
#B138C2 #C26C38 #49C238 #388EC2
square
#B138C2 #C26C38 #49C238 #388EC2
split-complementary
#B138C2 #8EC238 #38C26C
monochromatic
#5A1D63 #862A93 #B138C2 #C565D2 #D794E0

Accessibility & contrast

On white

4.98
#B138C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B138C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138C2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138C2#FFFFFF#000000##FFFFFF
##B138C21.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#B3517A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b138c2;
/* rgb */ color: rgb(177, 56, 194);
/* oklch */ color: oklch(57.2% 0.221 322.5);
Tailwind
colors: {
  custom: {
    50: '#cc7ad5',
    500: '#b138c2',
    950: '#000000',
  },
}
SCSS
$custom: #b138c2;
$custom-light: #cc7ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#b138c2",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 292.609,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57245,
    "c": 0.2209,
    "h": 322.5
  },
  "luminance": 0.16071
}

Semantic roles & 50–950 ramp

primary
#B138C2
secondary
#92CB8A
accent
#DF495C
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B138C2

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

Preview Lab → · Contrast checker → · Palette generator →

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