#B838BD#B838BD

#B838BD is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.220 H 326.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B838BD
RGBrgb(184, 56, 189)
HSLhsl(298, 54%, 48%)
HSVhsv(298, 70%, 74%)
CMYKcmyk(2.6%, 70.4%, 0%, 25.9%)
CIE-LABlab(47.87, 66.50, -43.92)
CIE-LCHlch(47.87, 79.69, 326.55°)
OKLaboklab(57.94% 0.1832 -0.1219)
OKLCHoklch(57.94% 0.22 326.3)
XYZxyz(30.3661, 16.6948, 49.7573)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838BD #3DBD38
analogous
#7538BD #B838BD #BD3880
triadic
#B838BD #BDB838 #38BDB8
tetradic
#B838BD #BD7538 #3DBD38 #3880BD
square
#B838BD #BD7538 #3DBD38 #3880BD
split-complementary
#B838BD #80BD38 #38BD75
monochromatic
#5C1C5F #8A2A8E #B838BD #CC62D0 #DB91DE

Accessibility & contrast

On white

4.84
#B838BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B838BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838BD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838BD#FFFFFF#000000##FFFFFF
##B838BD1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C1
Deuteranopia (green-blind)
#5677BA
Tritanopia (blue-blind)
#BD4D77
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b838bd;
/* rgb */ color: rgb(184, 56, 189);
/* oklch */ color: oklch(57.9% 0.220 326.3);
Tailwind
colors: {
  custom: {
    50: '#d17ad1',
    500: '#b838bd',
    950: '#000000',
  },
}
SCSS
$custom: #b838bd;
$custom-light: #d17ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b838bd",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 297.744,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57943,
    "c": 0.22002,
    "h": 326.3
  },
  "luminance": 0.16693
}

Semantic roles & 50–950 ramp

primary
#B838BD
secondary
#8AC987
accent
#DE4A50
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B838BD

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

Preview Lab → · Contrast checker → · Palette generator →

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