#B242BC#B242BC

#B242BC is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.0% C 0.204 H 324.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B242BC
RGBrgb(178, 66, 188)
HSLhsl(295, 48%, 50%)
HSVhsv(295, 65%, 74%)
CMYKcmyk(5.3%, 64.9%, 0%, 26.3%)
CIE-LABlab(48.25, 61.14, -42.80)
CIE-LCHlch(48.25, 74.63, 325.01°)
OKLaboklab(58.02% 0.1659 -0.1189)
OKLCHoklch(58.02% 0.204 324.4)
XYZxyz(29.3847, 16.9940, 49.2996)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242BC #4CBC42
analogous
#7542BC #B242BC #BC4289
triadic
#B242BC #BCB242 #42BCB2
tetradic
#B242BC #BC7542 #4CBC42 #4289BC
square
#B242BC #BC7542 #4CBC42 #4289BC
split-complementary
#B242BC #89BC42 #42BC75
monochromatic
#5C2261 #87328F #B242BC #C56FCC #D79CDC

Accessibility & contrast

On white

4.77
#B242BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B242BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242BC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242BC#FFFFFF#000000##FFFFFF
##B242BC1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296AC0
Deuteranopia (green-blind)
#5777B9
Tritanopia (blue-blind)
#B55579
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b242bc;
/* rgb */ color: rgb(178, 66, 188);
/* oklch */ color: oklch(58.0% 0.204 324.4);
Tailwind
colors: {
  custom: {
    50: '#cc7fd1',
    500: '#b242bc',
    950: '#000000',
  },
}
SCSS
$custom: #b242bc;
$custom-light: #cc7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b242bc",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 295.082,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58016,
    "c": 0.20406,
    "h": 324.4
  },
  "luminance": 0.16992
}

Semantic roles & 50–950 ramp

primary
#B242BC
secondary
#96C991
accent
#D8505B
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B242BC

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

Preview Lab → · Contrast checker → · Palette generator →

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