#B248DF#B248DF

#B248DF is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.228 H 314.0°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B248DF
RGBrgb(178, 72, 223)
HSLhsl(282, 70%, 58%)
HSVhsv(282, 68%, 87%)
CMYKcmyk(20.2%, 67.7%, 0%, 12.5%)
CIE-LABlab(51.18, 65.33, -58.21)
CIE-LCHlch(51.18, 87.50, 318.30°)
OKLaboklab(60.78% 0.1583 -0.164)
OKLCHoklch(60.78% 0.228 314)
XYZxyz(33.9945, 19.4285, 71.7571)
Luminance0.1943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248DF #75DF48
analogous
#6648DF #B248DF #DF48C1
triadic
#B248DF #DFB248 #48DFB2
tetradic
#B248DF #DF6648 #75DF48 #48C1DF
square
#B248DF #DF6648 #75DF48 #48C1DF
split-complementary
#B248DF #C1DF48 #48DF66
monochromatic
#6F1A93 #9623C7 #B248DF #C87CE8 #DEB0F1

Accessibility & contrast

On white

4.30
#B248DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#B248DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B248DF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248DF#FFFFFF#000000##000000
##B248DF1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#407CDC
Tritanopia (blue-blind)
#AE678E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b248df;
/* rgb */ color: rgb(178, 72, 223);
/* oklch */ color: oklch(60.8% 0.228 314.0);
Tailwind
colors: {
  custom: {
    50: '#cd83ea',
    500: '#b248df',
    950: '#000000',
  },
}
SCSS
$custom: #b248df;
$custom-light: #cd83ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b248df",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 282.119,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60781,
    "c": 0.22789,
    "h": 314
  },
  "luminance": 0.19427
}

Semantic roles & 50–950 ramp

primary
#B248DF
secondary
#B5E0A3
accent
#ED3B70
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B248DF

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

Preview Lab → · Contrast checker → · Palette generator →

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