#B248D4#B248D4

#B248D4 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.1% C 0.218 H 316.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B248D4
RGBrgb(178, 72, 212)
HSLhsl(285, 62%, 56%)
HSVhsv(285, 66%, 83%)
CMYKcmyk(16%, 66%, 0%, 16.9%)
CIE-LABlab(50.52, 63.14, -53.02)
CIE-LCHlch(50.52, 82.45, 319.98°)
OKLaboklab(60.09% 0.1589 -0.1488)
OKLCHoklch(60.09% 0.218 316.9)
XYZxyz(32.5594, 18.8545, 64.1988)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248D4 #6AD448
analogous
#6C48D4 #B248D4 #D448B0
triadic
#B248D4 #D4B248 #48D4B2
tetradic
#B248D4 #D46C48 #6AD448 #48B0D4
square
#B248D4 #D46C48 #6AD448 #48B0D4
split-complementary
#B248D4 #B0D448 #48D46C
monochromatic
#6B1F83 #932AB4 #B248D4 #C77AE0 #DCABEB

Accessibility & contrast

On white

4.40
#B248D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#B248D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B248D4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248D4#FFFFFF#000000##000000
##B248D41.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0472D8
Deuteranopia (green-blind)
#4A7BD1
Tritanopia (blue-blind)
#B06288
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b248d4;
/* rgb */ color: rgb(178, 72, 212);
/* oklch */ color: oklch(60.1% 0.218 316.9);
Tailwind
colors: {
  custom: {
    50: '#cd82e2',
    500: '#b248d4',
    950: '#000000',
  },
}
SCSS
$custom: #b248d4;
$custom-light: #cd82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#b248d4",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 212
  },
  "hsl": {
    "h": 285.429,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60087,
    "c": 0.2177,
    "h": 316.9
  },
  "luminance": 0.18853
}

Semantic roles & 50–950 ramp

primary
#B248D4
secondary
#ADD99F
accent
#E5436A
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B248D4

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

Preview Lab → · Contrast checker → · Palette generator →

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