#B938C3#B938C3

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

Color values

HEX#B938C3
RGBrgb(185, 56, 195)
HSLhsl(296, 55%, 49%)
HSVhsv(296, 71%, 76%)
CMYKcmyk(5.1%, 71.3%, 0%, 23.5%)
CIE-LABlab(48.37, 67.73, -46.62)
CIE-LCHlch(48.37, 82.22, 325.46°)
OKLaboklab(58.44% 0.1842 -0.1297)
OKLCHoklch(58.44% 0.225 324.8)
XYZxyz(31.2713, 17.0847, 53.2698)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B938C3 #42C338
analogous
#7338C3 #B938C3 #C33888
triadic
#B938C3 #C3B938 #38C3B9
tetradic
#B938C3 #C37338 #42C338 #3888C3
square
#B938C3 #C37338 #42C338 #3888C3
split-complementary
#B938C3 #88C338 #38C373
monochromatic
#5F1D64 #8C2A93 #B938C3 #CB65D3 #DB95E1

Accessibility & contrast

On white

4.75
#B938C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B938C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B938C3
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B938C3#FFFFFF#000000##FFFFFF
##B938C31.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C69C7
Deuteranopia (green-blind)
#5478C0
Tritanopia (blue-blind)
#BD507A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b938c3;
/* rgb */ color: rgb(185, 56, 195);
/* oklch */ color: oklch(58.4% 0.225 324.8);
Tailwind
colors: {
  custom: {
    50: '#d27bd6',
    500: '#b938c3',
    950: '#000000',
  },
}
SCSS
$custom: #b938c3;
$custom-light: #d27bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#b938c3",
  "rgb": {
    "r": 185,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 295.683,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58436,
    "c": 0.22527,
    "h": 324.8
  },
  "luminance": 0.17083
}

Semantic roles & 50–950 ramp

primary
#B938C3
secondary
#90CC8B
accent
#DF4954
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #B938C3

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

Preview Lab → · Contrast checker → · Palette generator →

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