#B838DA#B838DA

#B838DA is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.7% C 0.244 H 318.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B838DA
RGBrgb(184, 56, 218)
HSLhsl(287, 69%, 54%)
HSVhsv(287, 74%, 85%)
CMYKcmyk(15.6%, 74.3%, 0%, 14.5%)
CIE-LABlab(49.60, 71.62, -57.88)
CIE-LCHlch(49.60, 92.08, 321.06°)
OKLaboklab(59.72% 0.1814 -0.1627)
OKLCHoklch(59.72% 0.244 318.1)
XYZxyz(33.8345, 18.0822, 68.0241)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838DA #5ADA38
analogous
#6738DA #B838DA #DA38AB
triadic
#B838DA #DAB838 #38DAB8
tetradic
#B838DA #DA6738 #5ADA38 #38ABDA
square
#B838DA #DA6738 #5ADA38 #38ABDA
split-complementary
#B838DA #ABDA38 #38DA67
monochromatic
#6A1880 #9521B3 #B838DA #CA6CE4 #DD9FED

Accessibility & contrast

On white

4.55
#B838DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B838DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B838DA
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838DA#FFFFFF#000000##000000
##B838DA1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#3F7AD6
Tritanopia (blue-blind)
#B75A87
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b838da;
/* rgb */ color: rgb(184, 56, 218);
/* oklch */ color: oklch(59.7% 0.244 318.1);
Tailwind
colors: {
  custom: {
    50: '#d27ce6',
    500: '#b838da',
    950: '#000000',
  },
}
SCSS
$custom: #b838da;
$custom-light: #d27ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#b838da",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 287.407,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59723,
    "c": 0.24368,
    "h": 318.1
  },
  "luminance": 0.18081
}

Semantic roles & 50–950 ramp

primary
#B838DA
secondary
#A3DA94
accent
#EB3C61
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150A16
muted
#837C84

Preview Lab

Preview with #B838DA

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

Preview Lab → · Contrast checker → · Palette generator →

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