#B838C4#B838C4

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

Color values

HEX#B838C4
RGBrgb(184, 56, 196)
HSLhsl(295, 56%, 49%)
HSVhsv(295, 71%, 77%)
CMYKcmyk(6.1%, 71.4%, 0%, 23.1%)
CIE-LABlab(48.27, 67.69, -47.36)
CIE-LCHlch(48.27, 82.62, 325.02°)
OKLaboklab(58.35% 0.183 -0.1319)
OKLCHoklch(58.35% 0.226 324.2)
XYZxyz(31.1443, 17.0061, 53.8559)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838C4 #44C438
analogous
#7238C4 #B838C4 #C4388A
triadic
#B838C4 #C4B838 #38C4B8
tetradic
#B838C4 #C47238 #44C438 #388AC4
square
#B838C4 #C47238 #44C438 #388AC4
split-complementary
#B838C4 #8AC438 #38C472
monochromatic
#5F1D65 #8B2A94 #B838C4 #CA66D3 #DA96E1

Accessibility & contrast

On white

4.77
#B838C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B838C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838C4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838C4#FFFFFF#000000##FFFFFF
##B838C41.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0569C8
Deuteranopia (green-blind)
#5278C1
Tritanopia (blue-blind)
#BC507B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b838c4;
/* rgb */ color: rgb(184, 56, 196);
/* oklch */ color: oklch(58.4% 0.226 324.2);
Tailwind
colors: {
  custom: {
    50: '#d17bd6',
    500: '#b838c4',
    950: '#000000',
  },
}
SCSS
$custom: #b838c4;
$custom-light: #d17bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#b838c4",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 294.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58353,
    "c": 0.22562,
    "h": 324.2
  },
  "luminance": 0.17004
}

Semantic roles & 50–950 ramp

primary
#B838C4
secondary
#91CC8C
accent
#DF4956
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B838C4

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

Preview Lab → · Contrast checker → · Palette generator →

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