#B138CC#B138CC

#B138CC is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.229 H 319.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B138CC
RGBrgb(177, 56, 204)
HSLhsl(289, 59%, 51%)
HSVhsv(289, 73%, 80%)
CMYKcmyk(13.2%, 72.5%, 0%, 20%)
CIE-LABlab(47.67, 67.66, -53.00)
CIE-LCHlch(47.67, 85.95, 321.93°)
OKLaboklab(57.87% 0.1746 -0.1486)
OKLCHoklch(57.87% 0.229 319.6)
XYZxyz(30.4433, 16.5366, 58.7033)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138CC #53CC38
analogous
#6738CC #B138CC #CC389D
triadic
#B138CC #CCB138 #38CCB1
tetradic
#B138CC #CC6738 #53CC38 #389DCC
square
#B138CC #CC6738 #53CC38 #389DCC
split-complementary
#B138CC #9DCC38 #38CC67
monochromatic
#5F1C6E #89299E #B138CC #C469D8 #D799E5

Accessibility & contrast

On white

4.88
#B138CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B138CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138CC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138CC#FFFFFF#000000##FFFFFF
##B138CC1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#4475C9
Tritanopia (blue-blind)
#B1557F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b138cc;
/* rgb */ color: rgb(177, 56, 204);
/* oklch */ color: oklch(57.9% 0.229 319.6);
Tailwind
colors: {
  custom: {
    50: '#cc7adc',
    500: '#b138cc',
    950: '#000000',
  },
}
SCSS
$custom: #b138cc;
$custom-light: #cc7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#b138cc",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 289.054,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57867,
    "c": 0.22928,
    "h": 319.6
  },
  "luminance": 0.16535
}

Semantic roles & 50–950 ramp

primary
#B138CC
secondary
#9BD18F
accent
#E24562
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B138CC

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

Preview Lab → · Contrast checker → · Palette generator →

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