#B242BD#B242BD

#B242BD is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.205 H 324.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B242BD
RGBrgb(178, 66, 189)
HSLhsl(295, 48%, 50%)
HSVhsv(295, 65%, 74%)
CMYKcmyk(5.8%, 65.1%, 0%, 25.9%)
CIE-LABlab(48.31, 61.32, -43.29)
CIE-LCHlch(48.31, 75.06, 324.78°)
OKLaboklab(58.07% 0.1659 -0.1203)
OKLCHoklch(58.07% 0.205 324)
XYZxyz(29.4928, 17.0372, 49.8693)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242BD #4DBD42
analogous
#7442BD #B242BD #BD428B
triadic
#B242BD #BDB242 #42BDB2
tetradic
#B242BD #BD7442 #4DBD42 #428BBD
square
#B242BD #BD7442 #4DBD42 #428BBD
split-complementary
#B242BD #8BBD42 #42BD74
monochromatic
#5D2262 #873290 #B242BD #C46FCD #D79DDD

Accessibility & contrast

On white

4.76
#B242BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B242BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242BD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242BD#FFFFFF#000000##FFFFFF
##B242BD1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286AC1
Deuteranopia (green-blind)
#5777BA
Tritanopia (blue-blind)
#B5557A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b242bd;
/* rgb */ color: rgb(178, 66, 189);
/* oklch */ color: oklch(58.1% 0.205 324.0);
Tailwind
colors: {
  custom: {
    50: '#cc7fd1',
    500: '#b242bd',
    950: '#000000',
  },
}
SCSS
$custom: #b242bd;
$custom-light: #cc7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b242bd",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 294.634,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.58073,
    "c": 0.20492,
    "h": 324
  },
  "luminance": 0.17036
}

Semantic roles & 50–950 ramp

primary
#B242BD
secondary
#97C992
accent
#D8505C
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B242BD

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

Preview Lab → · Contrast checker → · Palette generator →

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