#B838B7#B838B7

#B838B7 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.215 H 328.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B838B7
RGBrgb(184, 56, 183)
HSLhsl(300, 53%, 47%)
HSVhsv(300, 70%, 72%)
CMYKcmyk(0%, 69.6%, 0.5%, 27.8%)
CIE-LABlab(47.55, 65.50, -40.94)
CIE-LCHlch(47.55, 77.24, 327.99°)
OKLaboklab(57.6% 0.1831 -0.1133)
OKLCHoklch(57.6% 0.215 328.3)
XYZxyz(29.7282, 16.4397, 46.3980)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838B7 #38B839
analogous
#7938B8 #B838B7 #B83877
triadic
#B838B7 #B7B838 #38B7B8
tetradic
#B838B7 #B87938 #38B839 #3877B8
square
#B838B7 #B87938 #38B839 #3877B8
split-complementary
#B838B7 #77B838 #38B879
monochromatic
#5A1B5A #892A88 #B838B7 #CE5FCD #DD8EDC

Accessibility & contrast

On white

4.90
#B838B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B838B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838B7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838B7#FFFFFF#000000##FFFFFF
##B838B71.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BB
Deuteranopia (green-blind)
#5A77B4
Tritanopia (blue-blind)
#BE4A74
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b838b7;
/* rgb */ color: rgb(184, 56, 183);
/* oklch */ color: oklch(57.6% 0.215 328.3);
Tailwind
colors: {
  custom: {
    50: '#d17acd',
    500: '#b838b7',
    950: '#000000',
  },
}
SCSS
$custom: #b838b7;
$custom-light: #d17acd;
$custom-dark: #000000;
JSON
{
  "hex": "#b838b7",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 300.469,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57603,
    "c": 0.2153,
    "h": 328.3
  },
  "luminance": 0.16438
}

Semantic roles & 50–950 ramp

primary
#B838B7
secondary
#85C785
accent
#DD4C4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B838B7

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

Preview Lab → · Contrast checker → · Palette generator →

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