#B138CB#B138CB

#B138CB is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.228 H 319.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B138CB
RGBrgb(177, 56, 203)
HSLhsl(289, 59%, 51%)
HSVhsv(289, 72%, 80%)
CMYKcmyk(12.8%, 72.4%, 0%, 20.4%)
CIE-LABlab(47.61, 67.47, -52.52)
CIE-LCHlch(47.61, 85.51, 322.10°)
OKLaboklab(57.8% 0.1747 -0.1472)
OKLCHoklch(57.8% 0.228 319.9)
XYZxyz(30.3238, 16.4888, 58.0737)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138CB #52CB38
analogous
#6738CB #B138CB #CB389B
triadic
#B138CB #CBB138 #38CBB1
tetradic
#B138CB #CB6738 #52CB38 #389BCB
square
#B138CB #CB6738 #52CB38 #389BCB
split-complementary
#B138CB #9BCB38 #38CB67
monochromatic
#5E1C6C #88299D #B138CB #C469D8 #D799E4

Accessibility & contrast

On white

4.89
#B138CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B138CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138CB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138CB#FFFFFF#000000##FFFFFF
##B138CB1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#4575C8
Tritanopia (blue-blind)
#B1557F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b138cb;
/* rgb */ color: rgb(177, 56, 203);
/* oklch */ color: oklch(57.8% 0.228 319.9);
Tailwind
colors: {
  custom: {
    50: '#cc7adb',
    500: '#b138cb',
    950: '#000000',
  },
}
SCSS
$custom: #b138cb;
$custom-light: #cc7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#b138cb",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 289.388,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57804,
    "c": 0.22844,
    "h": 319.9
  },
  "luminance": 0.16487
}

Semantic roles & 50–950 ramp

primary
#B138CB
secondary
#9AD08F
accent
#E24662
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B138CB

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

Preview Lab → · Contrast checker → · Palette generator →

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