#B248B1#B248B1

#B248B1 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.1% C 0.186 H 328.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B248B1
RGBrgb(178, 72, 177)
HSLhsl(301, 42%, 49%)
HSVhsv(301, 60%, 70%)
CMYKcmyk(0%, 59.6%, 0.6%, 30.2%)
CIE-LABlab(48.61, 56.63, -35.81)
CIE-LCHlch(48.61, 67.00, 327.69°)
OKLaboklab(58.09% 0.1581 -0.0987)
OKLCHoklch(58.09% 0.186 328)
XYZxyz(28.6129, 17.2759, 43.4140)
Luminance0.1727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248B1 #48B249
analogous
#7E48B2 #B248B1 #B2487C
triadic
#B248B1 #B1B248 #48B1B2
tetradic
#B248B1 #B27E48 #48B249 #487CB2
square
#B248B1 #B27E48 #48B249 #487CB2
split-complementary
#B248B1 #7CB248 #48B27E
monochromatic
#5B255A #863686 #B248B1 #C671C5 #D79DD7

Accessibility & contrast

On white

4.71
#B248B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B248B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B248B1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248B1#FFFFFF#000000##FFFFFF
##B248B11.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6AB4
Deuteranopia (green-blind)
#6178AE
Tritanopia (blue-blind)
#B75576
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b248b1;
/* rgb */ color: rgb(178, 72, 177);
/* oklch */ color: oklch(58.1% 0.186 328.0);
Tailwind
colors: {
  custom: {
    50: '#cc81c8',
    500: '#b248b1',
    950: '#000000',
  },
}
SCSS
$custom: #b248b1;
$custom-light: #cc81c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b248b1",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 177
  },
  "hsl": {
    "h": 300.566,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58087,
    "c": 0.18635,
    "h": 328
  },
  "luminance": 0.17274
}

Semantic roles & 50–950 ramp

primary
#B248B1
secondary
#92C492
accent
#D25756
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B248B1

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

Preview Lab → · Contrast checker → · Palette generator →

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