#B248A7#B248A7

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

Color values

HEX#B248A7
RGBrgb(178, 72, 167)
HSLhsl(306, 42%, 49%)
HSVhsv(306, 60%, 70%)
CMYKcmyk(0%, 59.6%, 6.2%, 30.2%)
CIE-LABlab(48.12, 54.92, -30.69)
CIE-LCHlch(48.12, 62.91, 330.80°)
OKLaboklab(57.58% 0.1569 -0.084)
OKLCHoklch(57.58% 0.178 331.8)
XYZxyz(27.6525, 16.8917, 38.3557)
Luminance0.1689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248A7 #48B253
analogous
#8848B2 #B248A7 #B24872
triadic
#B248A7 #A7B248 #48A7B2
tetradic
#B248A7 #B28848 #48B253 #4872B2
square
#B248A7 #B28848 #48B253 #4872B2
split-complementary
#B248A7 #72B248 #48B288
monochromatic
#5B2555 #86367E #B248A7 #C671BD #D79DD1

Accessibility & contrast

On white

4.80
#B248A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B248A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B248A7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248A7#FFFFFF#000000##FFFFFF
##B248A71.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b248a7;
/* rgb */ color: rgb(178, 72, 167);
/* oklch */ color: oklch(57.6% 0.178 331.8);
Tailwind
colors: {
  custom: {
    50: '#cc81c1',
    500: '#b248a7',
    950: '#000000',
  },
}
SCSS
$custom: #b248a7;
$custom-light: #cc81c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b248a7",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 167
  },
  "hsl": {
    "h": 306.226,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57578,
    "c": 0.17798,
    "h": 331.8
  },
  "luminance": 0.1689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B248A7

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

Preview Lab → · Contrast checker → · Palette generator →

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