#B838BA#B838BA

#B838BA is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.218 H 327.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B838BA
RGBrgb(184, 56, 186)
HSLhsl(299, 54%, 47%)
HSVhsv(299, 70%, 73%)
CMYKcmyk(1.1%, 69.9%, 0%, 27.1%)
CIE-LABlab(47.71, 65.99, -42.44)
CIE-LCHlch(47.71, 78.46, 327.26°)
OKLaboklab(57.77% 0.1832 -0.1176)
OKLCHoklch(57.77% 0.218 327.3)
XYZxyz(30.0438, 16.5659, 48.0600)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838BA #3ABA38
analogous
#7738BA #B838BA #BA387B
triadic
#B838BA #BAB838 #38BAB8
tetradic
#B838BA #BA7738 #3ABA38 #387BBA
square
#B838BA #BA7738 #3ABA38 #387BBA
split-complementary
#B838BA #7BBA38 #38BA77
monochromatic
#5B1C5C #892A8B #B838BA #CD60CF #DC8FDD

Accessibility & contrast

On white

4.87
#B838BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B838BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838BA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838BA#FFFFFF#000000##FFFFFF
##B838BA1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#5877B7
Tritanopia (blue-blind)
#BD4C75
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b838ba;
/* rgb */ color: rgb(184, 56, 186);
/* oklch */ color: oklch(57.8% 0.218 327.3);
Tailwind
colors: {
  custom: {
    50: '#d17acf',
    500: '#b838ba',
    950: '#000000',
  },
}
SCSS
$custom: #b838ba;
$custom-light: #d17acf;
$custom-dark: #000000;
JSON
{
  "hex": "#b838ba",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 299.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57772,
    "c": 0.21765,
    "h": 327.3
  },
  "luminance": 0.16564
}

Semantic roles & 50–950 ramp

primary
#B838BA
secondary
#87C886
accent
#DD4B4D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B838BA

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

Preview Lab → · Contrast checker → · Palette generator →

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