#B138DA#B138DA

#B138DA is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.8% C 0.241 H 315.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B138DA
RGBrgb(177, 56, 218)
HSLhsl(285, 69%, 54%)
HSVhsv(285, 74%, 85%)
CMYKcmyk(18.8%, 74.3%, 0%, 14.5%)
CIE-LABlab(48.56, 70.28, -59.60)
CIE-LCHlch(48.56, 92.15, 319.70°)
OKLaboklab(58.78% 0.1731 -0.168)
OKLCHoklch(58.78% 0.241 315.9)
XYZxyz(32.1985, 17.2387, 67.9474)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138DA #61DA38
analogous
#6038DA #B138DA #DA38B2
triadic
#B138DA #DAB138 #38DAB1
tetradic
#B138DA #DA6038 #61DA38 #38B2DA
square
#B138DA #DA6038 #61DA38 #38B2DA
split-complementary
#B138DA #B2DA38 #38DA60
monochromatic
#651880 #8E21B3 #B138DA #C56CE4 #D99FED

Accessibility & contrast

On white

4.72
#B138DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B138DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138DA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138DA#FFFFFF#000000##FFFFFF
##B138DA1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#3577D6
Tritanopia (blue-blind)
#AE5C87
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b138da;
/* rgb */ color: rgb(177, 56, 218);
/* oklch */ color: oklch(58.8% 0.241 315.9);
Tailwind
colors: {
  custom: {
    50: '#cd7be6',
    500: '#b138da',
    950: '#000000',
  },
}
SCSS
$custom: #b138da;
$custom-light: #cd7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b138da",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 284.815,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58781,
    "c": 0.24119,
    "h": 315.9
  },
  "luminance": 0.17237
}

Semantic roles & 50–950 ramp

primary
#B138DA
secondary
#A6DA94
accent
#EB3C69
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B138DA

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

Preview Lab → · Contrast checker → · Palette generator →

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