#B248A9#B248A9

#B248A9 is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.7% C 0.180 H 331.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B248A9
RGBrgb(178, 72, 169)
HSLhsl(305, 42%, 49%)
HSVhsv(305, 60%, 70%)
CMYKcmyk(0%, 59.6%, 5.1%, 30.2%)
CIE-LABlab(48.22, 55.25, -31.72)
CIE-LCHlch(48.22, 63.71, 330.14°)
OKLaboklab(57.68% 0.1572 -0.0869)
OKLCHoklch(57.68% 0.18 331.1)
XYZxyz(27.8388, 16.9662, 39.3370)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248A9 #48B251
analogous
#8648B2 #B248A9 #B24874
triadic
#B248A9 #A9B248 #48A9B2
tetradic
#B248A9 #B28648 #48B251 #4874B2
square
#B248A9 #B28648 #48B251 #4874B2
split-complementary
#B248A9 #74B248 #48B286
monochromatic
#5B2556 #863680 #B248A9 #C671BF #D79DD2

Accessibility & contrast

On white

4.78
#B248A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B248A9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248A9#FFFFFF#000000##FFFFFF
##B248A91.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4269AC
Deuteranopia (green-blind)
#6578A6
Tritanopia (blue-blind)
#B95272
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b248a9;
/* rgb */ color: rgb(178, 72, 169);
/* oklch */ color: oklch(57.7% 0.180 331.1);
Tailwind
colors: {
  custom: {
    50: '#cc81c3',
    500: '#b248a9',
    950: '#000000',
  },
}
SCSS
$custom: #b248a9;
$custom-light: #cc81c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b248a9",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 169
  },
  "hsl": {
    "h": 305.094,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57677,
    "c": 0.17963,
    "h": 331.1
  },
  "luminance": 0.16964
}

Semantic roles & 50–950 ramp

primary
#B248A9
secondary
#92C496
accent
#D26056
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B12
muted
#827C81

Preview Lab

Preview with #B248A9

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

Preview Lab → · Contrast checker → · Palette generator →

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