#B138C4#B138C4

#B138C4 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.223 H 321.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B138C4
RGBrgb(177, 56, 196)
HSLhsl(292, 56%, 49%)
HSVhsv(292, 71%, 77%)
CMYKcmyk(9.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(47.19, 66.20, -49.15)
CIE-LCHlch(47.19, 82.45, 323.41°)
OKLaboklab(57.37% 0.1751 -0.1374)
OKLCHoklch(57.37% 0.223 321.9)
XYZxyz(29.5084, 16.1626, 53.7793)
Luminance0.1616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138C4 #4BC438
analogous
#6B38C4 #B138C4 #C43891
triadic
#B138C4 #C4B138 #38C4B1
tetradic
#B138C4 #C46B38 #4BC438 #3891C4
square
#B138C4 #C46B38 #4BC438 #3891C4
split-complementary
#B138C4 #91C438 #38C46B
monochromatic
#5B1D65 #862A94 #B138C4 #C466D3 #D796E1

Accessibility & contrast

On white

4.96
#B138C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B138C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138C4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138C4#FFFFFF#000000##FFFFFF
##B138C41.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#4B74C1
Tritanopia (blue-blind)
#B3527B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b138c4;
/* rgb */ color: rgb(177, 56, 196);
/* oklch */ color: oklch(57.4% 0.223 321.9);
Tailwind
colors: {
  custom: {
    50: '#cc7ad6',
    500: '#b138c4',
    950: '#000000',
  },
}
SCSS
$custom: #b138c4;
$custom-light: #cc7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#b138c4",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 291.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57368,
    "c": 0.22257,
    "h": 321.9
  },
  "luminance": 0.16161
}

Semantic roles & 50–950 ramp

primary
#B138C4
secondary
#94CC8C
accent
#DF495D
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B138C4

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

Preview Lab → · Contrast checker → · Palette generator →

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