#B138CE#B138CE

#B138CE is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.231 H 319.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B138CE
RGBrgb(177, 56, 206)
HSLhsl(288, 60%, 51%)
HSVhsv(288, 73%, 81%)
CMYKcmyk(14.1%, 72.8%, 0%, 19.2%)
CIE-LABlab(47.79, 68.03, -53.95)
CIE-LCHlch(47.79, 86.83, 321.58°)
OKLaboklab(58% 0.1744 -0.1514)
OKLCHoklch(58% 0.231 319)
XYZxyz(30.6847, 16.6332, 59.9748)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138CE #55CE38
analogous
#6638CE #B138CE #CE38A0
triadic
#B138CE #CEB138 #38CEB1
tetradic
#B138CE #CE6638 #55CE38 #38A0CE
square
#B138CE #CE6638 #55CE38 #38A0CE
split-complementary
#B138CE #A0CE38 #38CE66
monochromatic
#601C70 #8A28A1 #B138CE #C469DA #D79AE6

Accessibility & contrast

On white

4.85
#B138CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B138CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138CE
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138CE#FFFFFF#000000##FFFFFF
##B138CE1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#4275CB
Tritanopia (blue-blind)
#B15680
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b138ce;
/* rgb */ color: rgb(177, 56, 206);
/* oklch */ color: oklch(58.0% 0.231 319.0);
Tailwind
colors: {
  custom: {
    50: '#cc7ade',
    500: '#b138ce',
    950: '#000000',
  },
}
SCSS
$custom: #b138ce;
$custom-light: #cc7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#b138ce",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 288.4,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57995,
    "c": 0.23097,
    "h": 319
  },
  "luminance": 0.16632
}

Semantic roles & 50–950 ramp

primary
#B138CE
secondary
#9DD290
accent
#E44463
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B138CE

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

Preview Lab → · Contrast checker → · Palette generator →

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