#B138D7#B138D7

#B138D7 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.6% C 0.239 H 316.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B138D7
RGBrgb(177, 56, 215)
HSLhsl(286, 67%, 53%)
HSVhsv(286, 74%, 84%)
CMYKcmyk(17.7%, 74%, 0%, 15.7%)
CIE-LABlab(48.36, 69.71, -58.20)
CIE-LCHlch(48.36, 90.81, 320.14°)
OKLaboklab(58.58% 0.1735 -0.1639)
OKLCHoklch(58.58% 0.239 316.6)
XYZxyz(31.8095, 17.0831, 65.8986)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138D7 #5ED738
analogous
#6138D7 #B138D7 #D738AE
triadic
#B138D7 #D7B138 #38D7B1
tetradic
#B138D7 #D76138 #5ED738 #38AED7
square
#B138D7 #D76138 #5ED738 #38AED7
split-complementary
#B138D7 #AED738 #38D761
monochromatic
#64197C #8D23AF #B138D7 #C56BE1 #D99EEB

Accessibility & contrast

On white

4.76
#B138D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B138D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138D7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138D7#FFFFFF#000000##FFFFFF
##B138D71.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#3976D4
Tritanopia (blue-blind)
#AF5A85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b138d7;
/* rgb */ color: rgb(177, 56, 215);
/* oklch */ color: oklch(58.6% 0.239 316.6);
Tailwind
colors: {
  custom: {
    50: '#cd7be4',
    500: '#b138d7',
    950: '#000000',
  },
}
SCSS
$custom: #b138d7;
$custom-light: #cd7be4;
$custom-dark: #000000;
JSON
{
  "hex": "#b138d7",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 285.66,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58581,
    "c": 0.23862,
    "h": 316.6
  },
  "luminance": 0.17082
}

Semantic roles & 50–950 ramp

primary
#B138D7
secondary
#A4D893
accent
#E93E67
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B138D7

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

Preview Lab → · Contrast checker → · Palette generator →

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