#B838C7#B838C7

#B838C7 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.5% C 0.228 H 323.3°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B838C7
RGBrgb(184, 56, 199)
HSLhsl(294, 56%, 50%)
HSVhsv(294, 72%, 78%)
CMYKcmyk(7.5%, 71.9%, 0%, 22%)
CIE-LABlab(48.44, 68.21, -48.82)
CIE-LCHlch(48.44, 83.88, 324.41°)
OKLaboklab(58.53% 0.1829 -0.1362)
OKLCHoklch(58.53% 0.228 323.3)
XYZxyz(31.4892, 17.1441, 55.6723)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838C7 #47C738
analogous
#7038C7 #B838C7 #C7388F
triadic
#B838C7 #C7B838 #38C7B8
tetradic
#B838C7 #C77038 #47C738 #388FC7
square
#B838C7 #C77038 #47C738 #388FC7
split-complementary
#B838C7 #8FC738 #38C770
monochromatic
#601D67 #8C2B97 #B838C7 #C968D4 #DA98E2

Accessibility & contrast

On white

4.74
#B838C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B838C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838C7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838C7#FFFFFF#000000##FFFFFF
##B838C71.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#5078C4
Tritanopia (blue-blind)
#BB527C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b838c7;
/* rgb */ color: rgb(184, 56, 199);
/* oklch */ color: oklch(58.5% 0.228 323.3);
Tailwind
colors: {
  custom: {
    50: '#d17bd9',
    500: '#b838c7',
    950: '#000000',
  },
}
SCSS
$custom: #b838c7;
$custom-light: #d17bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b838c7",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 293.706,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.58533,
    "c": 0.22805,
    "h": 323.3
  },
  "luminance": 0.17142
}

Semantic roles & 50–950 ramp

primary
#B838C7
secondary
#94CD8D
accent
#DF4858
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #B838C7

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

Preview Lab → · Contrast checker → · Palette generator →

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