#B838C2#B838C2

#B838C2 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.2% C 0.224 H 324.8°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B838C2
RGBrgb(184, 56, 194)
HSLhsl(296, 55%, 49%)
HSVhsv(296, 71%, 76%)
CMYKcmyk(5.2%, 71.1%, 0%, 23.9%)
CIE-LABlab(48.15, 67.35, -46.38)
CIE-LCHlch(48.15, 81.77, 325.44°)
OKLaboklab(58.24% 0.1831 -0.1291)
OKLCHoklch(58.24% 0.224 324.8)
XYZxyz(30.9182, 16.9157, 52.6650)
Luminance0.1691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838C2 #42C238
analogous
#7338C2 #B838C2 #C23887
triadic
#B838C2 #C2B838 #38C2B8
tetradic
#B838C2 #C27338 #42C238 #3887C2
square
#B838C2 #C27338 #42C238 #3887C2
split-complementary
#B838C2 #87C238 #38C273
monochromatic
#5E1D63 #8B2A93 #B838C2 #CB65D2 #DB94E0

Accessibility & contrast

On white

4.79
#B838C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B838C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838C2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838C2#FFFFFF#000000##FFFFFF
##B838C21.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D68C6
Deuteranopia (green-blind)
#5378BF
Tritanopia (blue-blind)
#BC4F7A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b838c2;
/* rgb */ color: rgb(184, 56, 194);
/* oklch */ color: oklch(58.2% 0.224 324.8);
Tailwind
colors: {
  custom: {
    50: '#d17bd5',
    500: '#b838c2',
    950: '#000000',
  },
}
SCSS
$custom: #b838c2;
$custom-light: #d17bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#b838c2",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 295.652,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58235,
    "c": 0.22401,
    "h": 324.8
  },
  "luminance": 0.16914
}

Semantic roles & 50–950 ramp

primary
#B838C2
secondary
#8FCB8A
accent
#DF4954
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B838C2

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

Preview Lab → · Contrast checker → · Palette generator →

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