#B242BA#B242BA

#B242BA is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 57.9% C 0.202 H 325.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B242BA
RGBrgb(178, 66, 186)
HSLhsl(296, 48%, 49%)
HSVhsv(296, 65%, 73%)
CMYKcmyk(4.3%, 64.5%, 0%, 27.1%)
CIE-LABlab(48.14, 60.78, -41.80)
CIE-LCHlch(48.14, 73.77, 325.48°)
OKLaboklab(57.9% 0.1658 -0.116)
OKLCHoklch(57.9% 0.202 325)
XYZxyz(29.1706, 16.9083, 48.1720)
Luminance0.1691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242BA #4ABA42
analogous
#7642BA #B242BA #BA4286
triadic
#B242BA #BAB242 #42BAB2
tetradic
#B242BA #BA7642 #4ABA42 #4286BA
square
#B242BA #BA7642 #4ABA42 #4286BA
split-complementary
#B242BA #86BA42 #42BA76
monochromatic
#5C2260 #87328D #B242BA #C56ECB #D79BDB

Accessibility & contrast

On white

4.79
#B242BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B242BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242BA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242BA#FFFFFF#000000##FFFFFF
##B242BA1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BE
Deuteranopia (green-blind)
#5877B7
Tritanopia (blue-blind)
#B65478
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b242ba;
/* rgb */ color: rgb(178, 66, 186);
/* oklch */ color: oklch(57.9% 0.202 325.0);
Tailwind
colors: {
  custom: {
    50: '#cc7fcf',
    500: '#b242ba',
    950: '#000000',
  },
}
SCSS
$custom: #b242ba;
$custom-light: #cc7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#b242ba",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 296,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57903,
    "c": 0.20235,
    "h": 325
  },
  "luminance": 0.16907
}

Semantic roles & 50–950 ramp

primary
#B242BA
secondary
#94C890
accent
#D7515A
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B242BA

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

Preview Lab → · Contrast checker → · Palette generator →

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