#B138CD#B138CD

#B138CD is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.230 H 319.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B138CD
RGBrgb(177, 56, 205)
HSLhsl(289, 60%, 51%)
HSVhsv(289, 73%, 80%)
CMYKcmyk(13.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(47.73, 67.84, -53.48)
CIE-LCHlch(47.73, 86.39, 321.75°)
OKLaboklab(57.93% 0.1745 -0.15)
OKLCHoklch(57.93% 0.23 319.3)
XYZxyz(30.5636, 16.5847, 59.3370)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B138CD #54CD38
analogous
#6638CD #B138CD #CD389E
triadic
#B138CD #CDB138 #38CDB1
tetradic
#B138CD #CD6638 #54CD38 #389ECD
square
#B138CD #CD6638 #54CD38 #389ECD
split-complementary
#B138CD #9ECD38 #38CD66
monochromatic
#5F1C6F #8928A0 #B138CD #C469D9 #D79AE6

Accessibility & contrast

On white

4.86
#B138CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B138CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B138CD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B138CD#FFFFFF#000000##FFFFFF
##B138CD1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#4375CA
Tritanopia (blue-blind)
#B15680
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b138cd;
/* rgb */ color: rgb(177, 56, 205);
/* oklch */ color: oklch(57.9% 0.230 319.3);
Tailwind
colors: {
  custom: {
    50: '#cc7add',
    500: '#b138cd',
    950: '#000000',
  },
}
SCSS
$custom: #b138cd;
$custom-light: #cc7add;
$custom-dark: #000000;
JSON
{
  "hex": "#b138cd",
  "rgb": {
    "r": 177,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 288.725,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57931,
    "c": 0.23012,
    "h": 319.3
  },
  "luminance": 0.16583
}

Semantic roles & 50–950 ramp

primary
#B138CD
secondary
#9CD18F
accent
#E34563
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B138CD

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

Preview Lab → · Contrast checker → · Palette generator →

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