#B938C5#B938C5

#B938C5 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.6% C 0.227 H 324.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B938C5
RGBrgb(185, 56, 197)
HSLhsl(295, 56%, 50%)
HSVhsv(295, 72%, 77%)
CMYKcmyk(6.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(48.48, 68.08, -47.59)
CIE-LCHlch(48.48, 83.06, 325.04°)
OKLaboklab(58.55% 0.1841 -0.1326)
OKLCHoklch(58.55% 0.227 324.2)
XYZxyz(31.4990, 17.1758, 54.4687)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B938C5 #44C538
analogous
#7338C5 #B938C5 #C5388A
triadic
#B938C5 #C5B938 #38C5B9
tetradic
#B938C5 #C57338 #44C538 #388AC5
square
#B938C5 #C57338 #44C538 #388AC5
split-complementary
#B938C5 #8AC538 #38C573
monochromatic
#5F1D66 #8C2A95 #B938C5 #CA67D4 #DB96E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B938C5#FFFFFF#000000##FFFFFF
##B938C51.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)
#0469C9
Deuteranopia (green-blind)
#5278C2
Tritanopia (blue-blind)
#BD507B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b938c5;
/* rgb */ color: rgb(185, 56, 197);
/* oklch */ color: oklch(58.6% 0.227 324.2);
Tailwind
colors: {
  custom: {
    50: '#d27bd7',
    500: '#b938c5',
    950: '#000000',
  },
}
SCSS
$custom: #b938c5;
$custom-light: #d27bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#b938c5",
  "rgb": {
    "r": 185,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 294.894,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58554,
    "c": 0.22688,
    "h": 324.2
  },
  "luminance": 0.17174
}

Semantic roles & 50–950 ramp

primary
#B938C5
secondary
#92CD8C
accent
#DF4956
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #B938C5

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

Preview Lab → · Contrast checker → · Palette generator →

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