#B242BF#B242BF

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

Color values

HEX#B242BF
RGBrgb(178, 66, 191)
HSLhsl(294, 49%, 50%)
HSVhsv(294, 65%, 75%)
CMYKcmyk(6.8%, 65.4%, 0%, 25.1%)
CIE-LABlab(48.42, 61.68, -44.28)
CIE-LCHlch(48.42, 75.93, 324.33°)
OKLaboklab(58.19% 0.1659 -0.1232)
OKLCHoklch(58.19% 0.207 323.4)
XYZxyz(29.7114, 17.1247, 51.0205)
Luminance0.1712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242BF #4FBF42
analogous
#7342BF #B242BF #BF428D
triadic
#B242BF #BFB242 #42BFB2
tetradic
#B242BF #BF7342 #4FBF42 #428DBF
square
#B242BF #BF7342 #4FBF42 #428DBF
split-complementary
#B242BF #8DBF42 #42BF73
monochromatic
#5E2265 #883292 #B242BF #C570CE #D79DDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B242BF#FFFFFF#000000##FFFFFF
##B242BF1.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)
#256AC3
Deuteranopia (green-blind)
#5577BC
Tritanopia (blue-blind)
#B5567B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b242bf;
/* rgb */ color: rgb(178, 66, 191);
/* oklch */ color: oklch(58.2% 0.207 323.4);
Tailwind
colors: {
  custom: {
    50: '#cc7fd3',
    500: '#b242bf',
    950: '#000000',
  },
}
SCSS
$custom: #b242bf;
$custom-light: #cc7fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#b242bf",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 293.76,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58188,
    "c": 0.20666,
    "h": 323.4
  },
  "luminance": 0.17123
}

Semantic roles & 50–950 ramp

primary
#B242BF
secondary
#98CA93
accent
#D94F5D
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B242BF

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

Preview Lab → · Contrast checker → · Palette generator →

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