#B838BC#B838BC

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

Color values

HEX#B838BC
RGBrgb(184, 56, 188)
HSLhsl(298, 54%, 48%)
HSVhsv(298, 70%, 74%)
CMYKcmyk(2.1%, 70.2%, 0%, 26.3%)
CIE-LABlab(47.82, 66.33, -43.43)
CIE-LCHlch(47.82, 79.28, 326.78°)
OKLaboklab(57.89% 0.1832 -0.1205)
OKLCHoklch(57.89% 0.219 326.7)
XYZxyz(30.2579, 16.6516, 49.1876)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838BC #3CBC38
analogous
#7638BC #B838BC #BC387E
triadic
#B838BC #BCB838 #38BCB8
tetradic
#B838BC #BC7638 #3CBC38 #387EBC
square
#B838BC #BC7638 #3CBC38 #387EBC
split-complementary
#B838BC #7EBC38 #38BC76
monochromatic
#5C1C5E #8A2A8D #B838BC #CD61D0 #DC90DE

Accessibility & contrast

On white

4.85
#B838BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B838BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838BC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838BC#FFFFFF#000000##FFFFFF
##B838BC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C67C0
Deuteranopia (green-blind)
#5777B9
Tritanopia (blue-blind)
#BD4D76
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b838bc;
/* rgb */ color: rgb(184, 56, 188);
/* oklch */ color: oklch(57.9% 0.219 326.7);
Tailwind
colors: {
  custom: {
    50: '#d17ad1',
    500: '#b838bc',
    950: '#000000',
  },
}
SCSS
$custom: #b838bc;
$custom-light: #d17ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b838bc",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 298.182,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57886,
    "c": 0.21923,
    "h": 326.7
  },
  "luminance": 0.1665
}

Semantic roles & 50–950 ramp

primary
#B838BC
secondary
#89C987
accent
#DD4A4F
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B838BC

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

Preview Lab → · Contrast checker → · Palette generator →

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