#B242BB#B242BB

#B242BB is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.203 H 324.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B242BB
RGBrgb(178, 66, 187)
HSLhsl(296, 48%, 50%)
HSVhsv(296, 65%, 73%)
CMYKcmyk(4.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(48.20, 60.96, -42.30)
CIE-LCHlch(48.20, 74.20, 325.24°)
OKLaboklab(57.96% 0.1658 -0.1174)
OKLCHoklch(57.96% 0.203 324.7)
XYZxyz(29.2772, 16.9510, 48.7339)
Luminance0.1695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242BB #4BBB42
analogous
#7642BB #B242BB #BB4288
triadic
#B242BB #BBB242 #42BBB2
tetradic
#B242BB #BB7642 #4BBB42 #4288BB
square
#B242BB #BB7642 #4BBB42 #4288BB
split-complementary
#B242BB #88BB42 #42BB76
monochromatic
#5C2261 #87328E #B242BB #C56ECC #D79CDC

Accessibility & contrast

On white

4.78
#B242BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B242BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242BB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242BB#FFFFFF#000000##FFFFFF
##B242BB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6ABF
Deuteranopia (green-blind)
#5877B8
Tritanopia (blue-blind)
#B65479
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b242bb;
/* rgb */ color: rgb(178, 66, 187);
/* oklch */ color: oklch(58.0% 0.203 324.7);
Tailwind
colors: {
  custom: {
    50: '#cc7fd0',
    500: '#b242bb',
    950: '#000000',
  },
}
SCSS
$custom: #b242bb;
$custom-light: #cc7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b242bb",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 295.537,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5796,
    "c": 0.20321,
    "h": 324.7
  },
  "luminance": 0.16949
}

Semantic roles & 50–950 ramp

primary
#B242BB
secondary
#95C891
accent
#D7505A
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B242BB

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

Preview Lab → · Contrast checker → · Palette generator →

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