#B948EF#B948EF

#B948EF is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.245 H 312.4°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B948EF
RGBrgb(185, 72, 239)
HSLhsl(281, 84%, 61%)
HSVhsv(281, 70%, 94%)
CMYKcmyk(22.6%, 69.9%, 0%, 6.3%)
CIE-LABlab(53.15, 69.97, -64.02)
CIE-LCHlch(53.15, 94.84, 317.55°)
OKLaboklab(62.7% 0.1654 -0.1808)
OKLCHoklch(62.7% 0.245 312.4)
XYZxyz(37.9021, 21.1821, 83.7366)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B948EF #7EEF48
analogous
#6548EF #B948EF #EF48D1
triadic
#B948EF #EFB948 #48EFB9
tetradic
#B948EF #EF6548 #7EEF48 #48D1EF
square
#B948EF #EF6548 #7EEF48 #48D1EF
split-complementary
#B948EF #D1EF48 #48EF65
monochromatic
#7A0FAD #A214E6 #B948EF #CF80F4 #E4B9F9

Accessibility & contrast

On white

4.01
#B948EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#B948EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B948EF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B948EF#FFFFFF#000000##000000
##B948EF1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#3681EB
Tritanopia (blue-blind)
#B36C97
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b948ef;
/* rgb */ color: rgb(185, 72, 239);
/* oklch */ color: oklch(62.7% 0.245 312.4);
Tailwind
colors: {
  custom: {
    50: '#d384f5',
    500: '#b948ef',
    950: '#000000',
  },
}
SCSS
$custom: #b948ef;
$custom-light: #d384f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b948ef",
  "rgb": {
    "r": 185,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 280.599,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.62703,
    "c": 0.245,
    "h": 312.4
  },
  "luminance": 0.21181
}

Semantic roles & 50–950 ramp

primary
#B948EF
secondary
#BEE9AA
accent
#E0054C
background
#FDF8FF
surface
#FBF0FE
border
#D4CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #B948EF

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

Preview Lab → · Contrast checker → · Palette generator →

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