#B838BF#B838BF

#B838BF is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.1% C 0.222 H 325.7°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B838BF
RGBrgb(184, 56, 191)
HSLhsl(297, 55%, 48%)
HSVhsv(297, 71%, 75%)
CMYKcmyk(3.7%, 70.7%, 0%, 25.1%)
CIE-LABlab(47.98, 66.83, -44.91)
CIE-LCHlch(47.98, 80.52, 326.10°)
OKLaboklab(58.06% 0.1831 -0.1248)
OKLCHoklch(58.06% 0.222 325.7)
XYZxyz(30.5847, 16.7823, 50.9085)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838BF #3FBF38
analogous
#7438BF #B838BF #BF3882
triadic
#B838BF #BFB838 #38BFB8
tetradic
#B838BF #BF7438 #3FBF38 #3882BF
square
#B838BF #BF7438 #3FBF38 #3882BF
split-complementary
#B838BF #82BF38 #38BF74
monochromatic
#5D1C60 #8A2A90 #B838BF #CC63D1 #DB92DF

Accessibility & contrast

On white

4.82
#B838BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B838BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838BF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838BF#FFFFFF#000000##FFFFFF
##B838BF1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1668C3
Deuteranopia (green-blind)
#5577BC
Tritanopia (blue-blind)
#BC4E78
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b838bf;
/* rgb */ color: rgb(184, 56, 191);
/* oklch */ color: oklch(58.1% 0.222 325.7);
Tailwind
colors: {
  custom: {
    50: '#d17bd3',
    500: '#b838bf',
    950: '#000000',
  },
}
SCSS
$custom: #b838bf;
$custom-light: #d17bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#b838bf",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 296.889,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58059,
    "c": 0.22161,
    "h": 325.7
  },
  "luminance": 0.1678
}

Semantic roles & 50–950 ramp

primary
#B838BF
secondary
#8CCA89
accent
#DE4A51
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B838BF

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

Preview Lab → · Contrast checker → · Palette generator →

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