#B248A1#B248A1

#B248A1 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.3% C 0.173 H 334.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B248A1
RGBrgb(178, 72, 161)
HSLhsl(310, 42%, 49%)
HSVhsv(310, 60%, 70%)
CMYKcmyk(0%, 59.6%, 9.6%, 30.2%)
CIE-LABlab(47.85, 53.93, -27.57)
CIE-LCHlch(47.85, 60.57, 332.92°)
OKLaboklab(57.29% 0.1561 -0.0751)
OKLCHoklch(57.29% 0.173 334.3)
XYZxyz(27.1106, 16.6750, 35.5020)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248A1 #48B259
analogous
#8E48B2 #B248A1 #B2486C
triadic
#B248A1 #A1B248 #48A1B2
tetradic
#B248A1 #B28E48 #48B259 #486CB2
square
#B248A1 #B28E48 #48B259 #486CB2
split-complementary
#B248A1 #6CB248 #48B28E
monochromatic
#5B2552 #86367A #B248A1 #C671B8 #D79DCE

Accessibility & contrast

On white

4.84
#B248A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B248A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B248A1
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248A1#FFFFFF#000000##FFFFFF
##B248A11.004.844.334.84
#FFFFFF4.841.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4768A4
Deuteranopia (green-blind)
#68779E
Tritanopia (blue-blind)
#BA4F6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b248a1;
/* rgb */ color: rgb(178, 72, 161);
/* oklch */ color: oklch(57.3% 0.173 334.3);
Tailwind
colors: {
  custom: {
    50: '#cc81bd',
    500: '#b248a1',
    950: '#000000',
  },
}
SCSS
$custom: #b248a1;
$custom-light: #cc81bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b248a1",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 161
  },
  "hsl": {
    "h": 309.623,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57286,
    "c": 0.17316,
    "h": 334.3
  },
  "luminance": 0.16673
}

Semantic roles & 50–950 ramp

primary
#B248A1
secondary
#92C49A
accent
#D26A56
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B248A1

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

Preview Lab → · Contrast checker → · Palette generator →

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