#B138C6#B138C6

#B138C6 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.5% C 0.224 H 321.3°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B138C6
RGBrgb(177, 56, 198)
HSLhsl(291, 56%, 50%)
HSVhsv(291, 72%, 78%)
CMYKcmyk(10.6%, 71.7%, 0%, 22.4%)
CIE-LABlab(47.31, 66.56, -50.12)
CIE-LCHlch(47.31, 83.32, 323.02°)
OKLaboklab(57.49% 0.175 -0.1402)
OKLCHoklch(57.49% 0.224 321.3)
XYZxyz(29.7375, 16.2543, 54.9862)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138C6 #4DC638
analogous
#6A38C6 #B138C6 #C63894
triadic
#B138C6 #C6B138 #38C6B1
tetradic
#B138C6 #C66A38 #4DC638 #3894C6
square
#B138C6 #C66A38 #4DC638 #3894C6
split-complementary
#B138C6 #94C638 #38C66A
monochromatic
#5C1D67 #862B96 #B138C6 #C467D4 #D697E2

Accessibility & contrast

On white

4.94
#B138C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B138C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138C6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138C6#FFFFFF#000000##FFFFFF
##B138C61.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#4975C3
Tritanopia (blue-blind)
#B3537C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b138c6;
/* rgb */ color: rgb(177, 56, 198);
/* oklch */ color: oklch(57.5% 0.224 321.3);
Tailwind
colors: {
  custom: {
    50: '#cc7ad8',
    500: '#b138c6',
    950: '#000000',
  },
}
SCSS
$custom: #b138c6;
$custom-light: #cc7ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#b138c6",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 291.127,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57491,
    "c": 0.22424,
    "h": 321.3
  },
  "luminance": 0.16253
}

Semantic roles & 50–950 ramp

primary
#B138C6
secondary
#96CD8D
accent
#DF495F
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B138C6

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

Preview Lab → · Contrast checker → · Palette generator →

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