#B838B2#B838B2

#B838B2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.211 H 329.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B838B2
RGBrgb(184, 56, 178)
HSLhsl(303, 53%, 47%)
HSVhsv(303, 70%, 72%)
CMYKcmyk(0%, 69.6%, 3.3%, 27.8%)
CIE-LABlab(47.28, 64.68, -38.43)
CIE-LCHlch(47.28, 75.23, 329.28°)
OKLaboklab(57.33% 0.183 -0.106)
OKLCHoklch(57.33% 0.211 329.9)
XYZxyz(29.2170, 16.2352, 43.7057)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838B2 #38B83E
analogous
#7E38B8 #B838B2 #B83872
triadic
#B838B2 #B2B838 #38B2B8
tetradic
#B838B2 #B87E38 #38B83E #3872B8
square
#B838B2 #B87E38 #38B83E #3872B8
split-complementary
#B838B2 #72B838 #38B87E
monochromatic
#5A1B57 #892A85 #B838B2 #CE5FC9 #DD8ED9

Accessibility & contrast

On white

4.95
#B838B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B838B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838B2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838B2#FFFFFF#000000##FFFFFF
##B838B21.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#5D76AF
Tritanopia (blue-blind)
#BF4871
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b838b2;
/* rgb */ color: rgb(184, 56, 178);
/* oklch */ color: oklch(57.3% 0.211 329.9);
Tailwind
colors: {
  custom: {
    50: '#d17ac9',
    500: '#b838b2',
    950: '#000000',
  },
}
SCSS
$custom: #b838b2;
$custom-light: #d17ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#b838b2",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 302.813,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57327,
    "c": 0.21143,
    "h": 329.9
  },
  "luminance": 0.16233
}

Semantic roles & 50–950 ramp

primary
#B838B2
secondary
#85C788
accent
#DD524B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B838B2

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

Preview Lab → · Contrast checker → · Palette generator →

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