#B242AC#B242AC

#B242AC is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.191 H 329.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B242AC
RGBrgb(178, 66, 172)
HSLhsl(303, 46%, 48%)
HSVhsv(303, 63%, 70%)
CMYKcmyk(0%, 62.9%, 3.4%, 30.2%)
CIE-LABlab(47.42, 58.36, -34.74)
CIE-LCHlch(47.42, 67.92, 329.23°)
OKLaboklab(57.14% 0.165 -0.0956)
OKLCHoklch(57.14% 0.191 329.9)
XYZxyz(27.7545, 16.3419, 40.7142)
Luminance0.1634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242AC #42B248
analogous
#8042B2 #B242AC #B24274
triadic
#B242AC #ACB242 #42ACB2
tetradic
#B242AC #B28042 #42B248 #4274B2
square
#B242AC #B28042 #42B248 #4274B2
split-complementary
#B242AC #74B242 #42B280
monochromatic
#592156 #853181 #B242AC #C86AC3 #D896D5

Accessibility & contrast

On white

4.92
#B242AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B242AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242AC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242AC#FFFFFF#000000##FFFFFF
##B242AC1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3967AF
Deuteranopia (green-blind)
#6076A9
Tritanopia (blue-blind)
#B84E71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b242ac;
/* rgb */ color: rgb(178, 66, 172);
/* oklch */ color: oklch(57.1% 0.191 329.9);
Tailwind
colors: {
  custom: {
    50: '#cc7ec5',
    500: '#b242ac',
    950: '#000000',
  },
}
SCSS
$custom: #b242ac;
$custom-light: #cc7ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#b242ac",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 303.214,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57143,
    "c": 0.19065,
    "h": 329.9
  },
  "luminance": 0.1634
}

Semantic roles & 50–950 ramp

primary
#B242AC
secondary
#8CC48F
accent
#D65952
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B242AC

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

Preview Lab → · Contrast checker → · Palette generator →

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