#B248A8#B248A8

#B248A8 is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.6% C 0.179 H 331.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B248A8
RGBrgb(178, 72, 168)
HSLhsl(306, 42%, 49%)
HSVhsv(306, 60%, 70%)
CMYKcmyk(0%, 59.6%, 5.6%, 30.2%)
CIE-LABlab(48.17, 55.09, -31.21)
CIE-LCHlch(48.17, 63.31, 330.47°)
OKLaboklab(57.63% 0.1571 -0.0854)
OKLCHoklch(57.63% 0.179 331.5)
XYZxyz(27.7453, 16.9288, 38.8444)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248A8 #48B252
analogous
#8748B2 #B248A8 #B24873
triadic
#B248A8 #A8B248 #48A8B2
tetradic
#B248A8 #B28748 #48B252 #4873B2
square
#B248A8 #B28748 #48B252 #4873B2
split-complementary
#B248A8 #73B248 #48B287
monochromatic
#5B2556 #86367F #B248A8 #C671BE #D79DD2

Accessibility & contrast

On white

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

On black

4.39
#B248A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B248A8#FFFFFF#000000##FFFFFF
##B248A81.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4369AB
Deuteranopia (green-blind)
#6578A5
Tritanopia (blue-blind)
#B95171
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b248a8;
/* rgb */ color: rgb(178, 72, 168);
/* oklch */ color: oklch(57.6% 0.179 331.5);
Tailwind
colors: {
  custom: {
    50: '#cc81c2',
    500: '#b248a8',
    950: '#000000',
  },
}
SCSS
$custom: #b248a8;
$custom-light: #cc81c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b248a8",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 168
  },
  "hsl": {
    "h": 305.66,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57627,
    "c": 0.1788,
    "h": 331.5
  },
  "luminance": 0.16927
}

Semantic roles & 50–950 ramp

primary
#B248A8
secondary
#92C497
accent
#D26156
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B248A8

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

Preview Lab → · Contrast checker → · Palette generator →

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