#B948DF#B948DF

#B948DF is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.230 H 316.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B948DF
RGBrgb(185, 72, 223)
HSLhsl(285, 70%, 58%)
HSVhsv(285, 68%, 87%)
CMYKcmyk(17%, 67.7%, 0%, 12.5%)
CIE-LABlab(52.15, 66.81, -56.61)
CIE-LCHlch(52.15, 87.57, 319.73°)
OKLaboklab(61.67% 0.1668 -0.159)
OKLCHoklch(61.67% 0.23 316.4)
XYZxyz(35.6422, 20.2781, 71.8343)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B948DF #6EDF48
analogous
#6E48DF #B948DF #DF48B9
triadic
#B948DF #DFB948 #48DFB9
tetradic
#B948DF #DF6E48 #6EDF48 #48B9DF
square
#B948DF #DF6E48 #6EDF48 #48B9DF
split-complementary
#B948DF #B9DF48 #48DF6E
monochromatic
#741A93 #9E23C7 #B948DF #CD7CE8 #E1B0F1

Accessibility & contrast

On white

4.15
#B948DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#B948DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B948DF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B948DF#FFFFFF#000000##000000
##B948DF1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E3
Deuteranopia (green-blind)
#4980DB
Tritanopia (blue-blind)
#B7658E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b948df;
/* rgb */ color: rgb(185, 72, 223);
/* oklch */ color: oklch(61.7% 0.230 316.4);
Tailwind
colors: {
  custom: {
    50: '#d283ea',
    500: '#b948df',
    950: '#000000',
  },
}
SCSS
$custom: #b948df;
$custom-light: #d283ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b948df",
  "rgb": {
    "r": 185,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 284.901,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61672,
    "c": 0.23045,
    "h": 316.4
  },
  "luminance": 0.20277
}

Semantic roles & 50–950 ramp

primary
#B948DF
secondary
#B2E0A3
accent
#ED3B68
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B948DF

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

Preview Lab → · Contrast checker → · Palette generator →

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