#B938C8#B938C8

#B938C8 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.229 H 323.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B938C8
RGBrgb(185, 56, 200)
HSLhsl(294, 57%, 50%)
HSVhsv(294, 72%, 78%)
CMYKcmyk(7.5%, 72%, 0%, 21.6%)
CIE-LABlab(48.65, 68.60, -49.05)
CIE-LCHlch(48.65, 84.33, 324.43°)
OKLaboklab(58.73% 0.184 -0.1368)
OKLCHoklch(58.73% 0.229 323.4)
XYZxyz(31.8461, 17.3147, 56.2970)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B938C8 #47C838
analogous
#7138C8 #B938C8 #C8388F
triadic
#B938C8 #C8B938 #38C8B9
tetradic
#B938C8 #C87138 #47C838 #388FC8
square
#B938C8 #C87138 #47C838 #388FC8
split-complementary
#B938C8 #8FC838 #38C871
monochromatic
#611D69 #8D2A99 #B938C8 #CA68D5 #DB98E3

Accessibility & contrast

On white

4.71
#B938C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B938C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B938C8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B938C8#FFFFFF#000000##FFFFFF
##B938C81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#5079C5
Tritanopia (blue-blind)
#BC527D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b938c8;
/* rgb */ color: rgb(185, 56, 200);
/* oklch */ color: oklch(58.7% 0.229 323.4);
Tailwind
colors: {
  custom: {
    50: '#d27bd9',
    500: '#b938c8',
    950: '#000000',
  },
}
SCSS
$custom: #b938c8;
$custom-light: #d27bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b938c8",
  "rgb": {
    "r": 185,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 293.75,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58734,
    "c": 0.2293,
    "h": 323.4
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#B938C8
secondary
#94CE8E
accent
#E04858
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #B938C8

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

Preview Lab → · Contrast checker → · Palette generator →

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