#B138C3#B138C3

#B138C3 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.222 H 322.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B138C3
RGBrgb(177, 56, 195)
HSLhsl(292, 55%, 49%)
HSVhsv(292, 71%, 76%)
CMYKcmyk(9.2%, 71.3%, 0%, 23.5%)
CIE-LABlab(47.13, 66.03, -48.66)
CIE-LCHlch(47.13, 82.02, 323.61°)
OKLaboklab(57.31% 0.1752 -0.1359)
OKLCHoklch(57.31% 0.222 322.2)
XYZxyz(29.3949, 16.1172, 53.1818)
Luminance0.1612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138C3 #4AC338
analogous
#6C38C3 #B138C3 #C33890
triadic
#B138C3 #C3B138 #38C3B1
tetradic
#B138C3 #C36C38 #4AC338 #3890C3
square
#B138C3 #C36C38 #4AC338 #3890C3
split-complementary
#B138C3 #90C338 #38C36C
monochromatic
#5B1D64 #862A93 #B138C3 #C565D3 #D795E1

Accessibility & contrast

On white

4.97
#B138C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B138C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138C3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138C3#FFFFFF#000000##FFFFFF
##B138C31.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b138c3;
/* rgb */ color: rgb(177, 56, 195);
/* oklch */ color: oklch(57.3% 0.222 322.2);
Tailwind
colors: {
  custom: {
    50: '#cc7ad6',
    500: '#b138c3',
    950: '#000000',
  },
}
SCSS
$custom: #b138c3;
$custom-light: #cc7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#b138c3",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 292.23,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57306,
    "c": 0.22174,
    "h": 322.2
  },
  "luminance": 0.16116
}

Semantic roles & 50–950 ramp

primary
#B138C3
secondary
#93CC8B
accent
#DF495C
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B138C3

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

Preview Lab → · Contrast checker → · Palette generator →

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