#B838D1#B838D1

#B838D1 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.1% C 0.236 H 320.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B838D1
RGBrgb(184, 56, 209)
HSLhsl(290, 62%, 52%)
HSVhsv(290, 73%, 82%)
CMYKcmyk(12%, 73.2%, 0%, 18%)
CIE-LABlab(49.04, 69.98, -53.63)
CIE-LCHlch(49.04, 88.17, 322.54°)
OKLaboklab(59.15% 0.1823 -0.1502)
OKLCHoklch(59.15% 0.236 320.5)
XYZxyz(32.6886, 17.6239, 61.9892)
Luminance0.1762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838D1 #51D138
analogous
#6C38D1 #B838D1 #D1389E
triadic
#B838D1 #D1B838 #38D1B8
tetradic
#B838D1 #D16C38 #51D138 #389ED1
square
#B838D1 #D16C38 #51D138 #389ED1
split-complementary
#B838D1 #9ED138 #38D16C
monochromatic
#651B74 #9126A6 #B838D1 #CA6ADC #DB9BE8

Accessibility & contrast

On white

4.64
#B838D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B838D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B838D1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838D1#FFFFFF#000000##FFFFFF
##B838D11.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#4879CD
Tritanopia (blue-blind)
#B95682
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b838d1;
/* rgb */ color: rgb(184, 56, 209);
/* oklch */ color: oklch(59.1% 0.236 320.5);
Tailwind
colors: {
  custom: {
    50: '#d17be0',
    500: '#b838d1',
    950: '#000000',
  },
}
SCSS
$custom: #b838d1;
$custom-light: #d17be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b838d1",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 290.196,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59148,
    "c": 0.23623,
    "h": 320.5
  },
  "luminance": 0.17622
}

Semantic roles & 50–950 ramp

primary
#B838D1
secondary
#9CD491
accent
#E6425D
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #B838D1

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

Preview Lab → · Contrast checker → · Palette generator →

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