#B248BA#B248BA

#B248BA is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.6% C 0.194 H 324.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B248BA
RGBrgb(178, 72, 186)
HSLhsl(296, 45%, 51%)
HSVhsv(296, 61%, 73%)
CMYKcmyk(4.3%, 61.3%, 0%, 27.1%)
CIE-LABlab(49.06, 58.23, -40.35)
CIE-LCHlch(49.06, 70.84, 325.28°)
OKLaboklab(58.57% 0.1587 -0.1118)
OKLCHoklch(58.57% 0.194 324.8)
XYZxyz(29.5397, 17.6466, 48.2951)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248BA #50BA48
analogous
#7948BA #B248BA #BA4889
triadic
#B248BA #BAB248 #48BAB2
tetradic
#B248BA #BA7948 #50BA48 #4889BA
square
#B248BA #BA7948 #50BA48 #4889BA
split-complementary
#B248BA #89BA48 #48BA79
monochromatic
#5E2562 #89368F #B248BA #C574CB #D7A1DC

Accessibility & contrast

On white

4.64
#B248BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B248BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B248BA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248BA#FFFFFF#000000##FFFFFF
##B248BA1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356CBD
Deuteranopia (green-blind)
#5C79B7
Tritanopia (blue-blind)
#B6587A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b248ba;
/* rgb */ color: rgb(178, 72, 186);
/* oklch */ color: oklch(58.6% 0.194 324.8);
Tailwind
colors: {
  custom: {
    50: '#cc82cf',
    500: '#b248ba',
    950: '#000000',
  },
}
SCSS
$custom: #b248ba;
$custom-light: #cc82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b248ba",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 295.789,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5857,
    "c": 0.19416,
    "h": 324.8
  },
  "luminance": 0.17645
}

Semantic roles & 50–950 ramp

primary
#B248BA
secondary
#99C896
accent
#D5535C
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B248BA

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

Preview Lab → · Contrast checker → · Palette generator →

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