#B938CA#B938CA

#B938CA is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.9% C 0.231 H 322.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B938CA
RGBrgb(185, 56, 202)
HSLhsl(293, 58%, 51%)
HSVhsv(293, 72%, 79%)
CMYKcmyk(8.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(48.77, 68.94, -50.02)
CIE-LCHlch(48.77, 85.18, 324.04°)
OKLaboklab(58.86% 0.1839 -0.1397)
OKLCHoklch(58.86% 0.231 322.8)
XYZxyz(32.0814, 17.4088, 57.5361)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B938CA #49CA38
analogous
#7038CA #B938CA #CA3892
triadic
#B938CA #CAB938 #38CAB9
tetradic
#B938CA #CA7038 #49CA38 #3892CA
square
#B938CA #CA7038 #49CA38 #3892CA
split-complementary
#B938CA #92CA38 #38CA70
monochromatic
#621D6B #8E299B #B938CA #CA68D7 #DB99E4

Accessibility & contrast

On white

4.69
#B938CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B938CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B938CA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B938CA#FFFFFF#000000##FFFFFF
##B938CA1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#4F79C7
Tritanopia (blue-blind)
#BC537E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b938ca;
/* rgb */ color: rgb(185, 56, 202);
/* oklch */ color: oklch(58.9% 0.231 322.8);
Tailwind
colors: {
  custom: {
    50: '#d27bdb',
    500: '#b938ca',
    950: '#000000',
  },
}
SCSS
$custom: #b938ca;
$custom-light: #d27bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b938ca",
  "rgb": {
    "r": 185,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 293.014,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58855,
    "c": 0.23092,
    "h": 322.8
  },
  "luminance": 0.17407
}

Semantic roles & 50–950 ramp

primary
#B938CA
secondary
#96CF8E
accent
#E14759
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #B938CA

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

Preview Lab → · Contrast checker → · Palette generator →

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