#B938DB#B938DB

#B938DB is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.9% C 0.245 H 318.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B938DB
RGBrgb(185, 56, 219)
HSLhsl(287, 69%, 54%)
HSVhsv(287, 74%, 86%)
CMYKcmyk(15.5%, 74.4%, 0%, 14.1%)
CIE-LABlab(49.81, 72.00, -58.10)
CIE-LCHlch(49.81, 92.51, 321.10°)
OKLaboklab(59.92% 0.1825 -0.1633)
OKLCHoklch(59.92% 0.245 318.2)
XYZxyz(34.2062, 18.2587, 68.7266)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B938DB #5ADB38
analogous
#6838DB #B938DB #DB38AC
triadic
#B938DB #DBB938 #38DBB9
tetradic
#B938DB #DB6838 #5ADB38 #38ACDB
square
#B938DB #DB6838 #5ADB38 #38ACDB
split-complementary
#B938DB #ACDB38 #38DB68
monochromatic
#6B1781 #9621B5 #B938DB #CB6CE4 #DDA0EE

Accessibility & contrast

On white

4.51
#B938DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#B938DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B938DB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B938DB#FFFFFF#000000##000000
##B938DB1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#407AD7
Tritanopia (blue-blind)
#B85A88
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b938db;
/* rgb */ color: rgb(185, 56, 219);
/* oklch */ color: oklch(59.9% 0.245 318.2);
Tailwind
colors: {
  custom: {
    50: '#d27ce7',
    500: '#b938db',
    950: '#000000',
  },
}
SCSS
$custom: #b938db;
$custom-light: #d27ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#b938db",
  "rgb": {
    "r": 185,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 287.485,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59924,
    "c": 0.24489,
    "h": 318.2
  },
  "luminance": 0.18257
}

Semantic roles & 50–950 ramp

primary
#B938DB
secondary
#A3DA95
accent
#EC3C60
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150A16
muted
#837C84

Preview Lab

Preview with #B938DB

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

Preview Lab → · Contrast checker → · Palette generator →

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