#B242AA#B242AA

#B242AA is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.0% C 0.189 H 330.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B242AA
RGBrgb(178, 66, 170)
HSLhsl(304, 46%, 48%)
HSVhsv(304, 63%, 70%)
CMYKcmyk(0%, 62.9%, 4.5%, 30.2%)
CIE-LABlab(47.32, 58.02, -33.72)
CIE-LCHlch(47.32, 67.11, 329.84°)
OKLaboklab(57.04% 0.1648 -0.0926)
OKLCHoklch(57.04% 0.189 330.7)
XYZxyz(27.5639, 16.2657, 39.7102)
Luminance0.1626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242AA #42B24A
analogous
#8242B2 #B242AA #B24272
triadic
#B242AA #AAB242 #42AAB2
tetradic
#B242AA #B28242 #42B24A #4272B2
square
#B242AA #B28242 #42B24A #4272B2
split-complementary
#B242AA #72B242 #42B282
monochromatic
#592155 #85317F #B242AA #C86AC1 #D896D3

Accessibility & contrast

On white

4.94
#B242AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B242AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242AA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242AA#FFFFFF#000000##FFFFFF
##B242AA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#6176A7
Tritanopia (blue-blind)
#B94D70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b242aa;
/* rgb */ color: rgb(178, 66, 170);
/* oklch */ color: oklch(57.0% 0.189 330.7);
Tailwind
colors: {
  custom: {
    50: '#cc7ec3',
    500: '#b242aa',
    950: '#000000',
  },
}
SCSS
$custom: #b242aa;
$custom-light: #cc7ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b242aa",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 304.286,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57039,
    "c": 0.18902,
    "h": 330.7
  },
  "luminance": 0.16264
}

Semantic roles & 50–950 ramp

primary
#B242AA
secondary
#8CC490
accent
#D65C52
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A12
muted
#827C81

Preview Lab

Preview with #B242AA

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

Preview Lab → · Contrast checker → · Palette generator →

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