#B838C5#B838C5

#B838C5 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.4% C 0.226 H 323.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B838C5
RGBrgb(184, 56, 197)
HSLhsl(294, 56%, 50%)
HSVhsv(294, 72%, 77%)
CMYKcmyk(6.6%, 71.6%, 0%, 22.7%)
CIE-LABlab(48.33, 67.86, -47.85)
CIE-LCHlch(48.33, 83.04, 324.81°)
OKLaboklab(58.41% 0.183 -0.1334)
OKLCHoklch(58.41% 0.226 323.9)
XYZxyz(31.2585, 17.0518, 54.4574)
Luminance0.1705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838C5 #45C538
analogous
#7238C5 #B838C5 #C5388C
triadic
#B838C5 #C5B838 #38C5B8
tetradic
#B838C5 #C57238 #45C538 #388CC5
square
#B838C5 #C57238 #45C538 #388CC5
split-complementary
#B838C5 #8CC538 #38C572
monochromatic
#5F1D66 #8B2A95 #B838C5 #CA67D4 #DA96E1

Accessibility & contrast

On white

4.76
#B838C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B838C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838C5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838C5#FFFFFF#000000##FFFFFF
##B838C51.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0169C9
Deuteranopia (green-blind)
#5178C2
Tritanopia (blue-blind)
#BB517B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b838c5;
/* rgb */ color: rgb(184, 56, 197);
/* oklch */ color: oklch(58.4% 0.226 323.9);
Tailwind
colors: {
  custom: {
    50: '#d17bd7',
    500: '#b838c5',
    950: '#000000',
  },
}
SCSS
$custom: #b838c5;
$custom-light: #d17bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#b838c5",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 294.468,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58413,
    "c": 0.22644,
    "h": 323.9
  },
  "luminance": 0.1705
}

Semantic roles & 50–950 ramp

primary
#B838C5
secondary
#92CD8C
accent
#DF4957
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B838C5

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

Preview Lab → · Contrast checker → · Palette generator →

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