#B838AC#B838AC

#B838AC is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.0% C 0.207 H 332.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#B838AC
RGBrgb(184, 56, 172)
HSLhsl(306, 53%, 47%)
HSVhsv(306, 70%, 72%)
CMYKcmyk(0%, 69.6%, 6.5%, 27.8%)
CIE-LABlab(46.97, 63.72, -35.38)
CIE-LCHlch(46.97, 72.88, 330.96°)
OKLaboklab(57.01% 0.1826 -0.0972)
OKLCHoklch(57.01% 0.207 332)
XYZxyz(28.6278, 15.9995, 40.6022)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838AC #38B844
analogous
#8438B8 #B838AC #B8386C
triadic
#B838AC #ACB838 #38ACB8
tetradic
#B838AC #B88438 #38B844 #386CB8
square
#B838AC #B88438 #38B844 #386CB8
split-complementary
#B838AC #6CB838 #38B884
monochromatic
#5A1B54 #892A80 #B838AC #CE5FC4 #DD8ED5

Accessibility & contrast

On white

5.00
#B838AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#B838AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838AC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838AC#FFFFFF#000000##FFFFFF
##B838AC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3064AF
Deuteranopia (green-blind)
#6076A9
Tritanopia (blue-blind)
#C0456E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b838ac;
/* rgb */ color: rgb(184, 56, 172);
/* oklch */ color: oklch(57.0% 0.207 332.0);
Tailwind
colors: {
  custom: {
    50: '#d17ac5',
    500: '#b838ac',
    950: '#000000',
  },
}
SCSS
$custom: #b838ac;
$custom-light: #d17ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#b838ac",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 305.625,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57006,
    "c": 0.20687,
    "h": 332
  },
  "luminance": 0.15997
}

Semantic roles & 50–950 ramp

primary
#B838AC
secondary
#85C78B
accent
#DD594B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B838AC

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

Preview Lab → · Contrast checker → · Palette generator →

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