#B242AE#B242AE

#B242AE is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.2% C 0.192 H 329.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B242AE
RGBrgb(178, 66, 174)
HSLhsl(302, 46%, 48%)
HSVhsv(302, 63%, 70%)
CMYKcmyk(0%, 62.9%, 2.2%, 30.2%)
CIE-LABlab(47.52, 58.69, -35.76)
CIE-LCHlch(47.52, 68.73, 328.65°)
OKLaboklab(57.25% 0.1651 -0.0985)
OKLCHoklch(57.25% 0.192 329.2)
XYZxyz(27.9480, 16.4193, 41.7334)
Luminance0.1642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242AE #42B246
analogous
#7E42B2 #B242AE #B24276
triadic
#B242AE #AEB242 #42AEB2
tetradic
#B242AE #B27E42 #42B246 #4276B2
square
#B242AE #B27E42 #42B246 #4276B2
split-complementary
#B242AE #76B242 #42B27E
monochromatic
#592157 #853182 #B242AE #C86AC4 #D896D6

Accessibility & contrast

On white

4.90
#B242AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B242AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242AE
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242AE#FFFFFF#000000##FFFFFF
##B242AE1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B1
Deuteranopia (green-blind)
#5F76AB
Tritanopia (blue-blind)
#B84F72
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b242ae;
/* rgb */ color: rgb(178, 66, 174);
/* oklch */ color: oklch(57.2% 0.192 329.2);
Tailwind
colors: {
  custom: {
    50: '#cc7ec6',
    500: '#b242ae',
    950: '#000000',
  },
}
SCSS
$custom: #b242ae;
$custom-light: #cc7ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#b242ae",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 302.143,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57248,
    "c": 0.19228,
    "h": 329.2
  },
  "luminance": 0.16417
}

Semantic roles & 50–950 ramp

primary
#B242AE
secondary
#8CC48E
accent
#D65752
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B242AE

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

Preview Lab → · Contrast checker → · Palette generator →

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