#B248B2#B248B2

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

Color values

HEX#B248B2
RGBrgb(178, 72, 178)
HSLhsl(300, 42%, 49%)
HSVhsv(300, 60%, 70%)
CMYKcmyk(0%, 59.6%, 0%, 30.2%)
CIE-LABlab(48.66, 56.80, -36.32)
CIE-LCHlch(48.66, 67.42, 327.40°)
OKLaboklab(58.14% 0.1582 -0.1002)
OKLCHoklch(58.14% 0.187 327.7)
XYZxyz(28.7129, 17.3159, 43.9408)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248B2 #48B248
analogous
#7D48B2 #B248B2 #B2487D
triadic
#B248B2 #B2B248 #48B2B2
tetradic
#B248B2 #B27D48 #48B248 #487DB2
square
#B248B2 #B27D48 #48B248 #487DB2
split-complementary
#B248B2 #7DB248 #48B27D
monochromatic
#5B255B #863686 #B248B2 #C671C6 #D79DD7

Accessibility & contrast

On white

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

On black

4.46
#B248B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B248B2#FFFFFF#000000##FFFFFF
##B248B21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#6078AF
Tritanopia (blue-blind)
#B75576
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b248b2;
/* rgb */ color: rgb(178, 72, 178);
/* oklch */ color: oklch(58.1% 0.187 327.7);
Tailwind
colors: {
  custom: {
    50: '#cc81c9',
    500: '#b248b2',
    950: '#000000',
  },
}
SCSS
$custom: #b248b2;
$custom-light: #cc81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b248b2",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5814,
    "c": 0.18721,
    "h": 327.7
  },
  "luminance": 0.17314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B248B2

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

Preview Lab → · Contrast checker → · Palette generator →

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