#B837C2#B837C2

#B837C2 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.1% C 0.225 H 324.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B837C2
RGBrgb(184, 55, 194)
HSLhsl(296, 56%, 49%)
HSVhsv(296, 72%, 76%)
CMYKcmyk(5.2%, 71.6%, 0%, 23.9%)
CIE-LABlab(48.03, 67.69, -46.58)
CIE-LCHlch(48.03, 82.17, 325.47°)
OKLaboklab(58.15% 0.184 -0.1296)
OKLCHoklch(58.15% 0.225 324.8)
XYZxyz(30.8702, 16.8197, 52.6490)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B837C2 #41C237
analogous
#7337C2 #B837C2 #C23787
triadic
#B837C2 #C2B837 #37C2B8
tetradic
#B837C2 #C27337 #41C237 #3787C2
square
#B837C2 #C27337 #41C237 #3787C2
split-complementary
#B837C2 #87C237 #37C273
monochromatic
#5E1C63 #8B2992 #B837C2 #CB63D3 #DB93E0

Accessibility & contrast

On white

4.81
#B837C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B837C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B837C2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B837C2#FFFFFF#000000##FFFFFF
##B837C21.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0968C6
Deuteranopia (green-blind)
#5377BF
Tritanopia (blue-blind)
#BC4F79
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b837c2;
/* rgb */ color: rgb(184, 55, 194);
/* oklch */ color: oklch(58.1% 0.225 324.8);
Tailwind
colors: {
  custom: {
    50: '#d17ad5',
    500: '#b837c2',
    950: '#000000',
  },
}
SCSS
$custom: #b837c2;
$custom-light: #d17ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#b837c2",
  "rgb": {
    "r": 184,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 295.683,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58148,
    "c": 0.22512,
    "h": 324.8
  },
  "luminance": 0.16818
}

Semantic roles & 50–950 ramp

primary
#B837C2
secondary
#8ECB89
accent
#DF4953
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B837C2

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

Preview Lab → · Contrast checker → · Palette generator →

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