#B948FE#B948FE

#B948FE is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.7% C 0.259 H 309.2°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B948FE
RGBrgb(185, 72, 254)
HSLhsl(277, 99%, 64%)
HSVhsv(277, 72%, 100%)
CMYKcmyk(27.2%, 71.7%, 0%, 0.4%)
CIE-LABlab(54.14, 73.03, -70.78)
CIE-LCHlch(54.14, 101.70, 315.90°)
OKLaboklab(63.72% 0.1634 -0.2006)
OKLCHoklch(63.72% 0.259 309.2)
XYZxyz(40.2107, 22.1055, 95.8952)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B948FE #8DFE48
analogous
#5E48FE #B948FE #FE48E8
triadic
#B948FE #FEB948 #48FEB9
tetradic
#B948FE #FE5E48 #8DFE48 #48E8FE
square
#B948FE #FE5E48 #8DFE48 #48E8FE
split-complementary
#B948FE #E8FE48 #48FE5E
monochromatic
#7E01CA #A20BFE #B948FE #D085FE #E8C2FF

Accessibility & contrast

On white

3.87
#B948FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#B948FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B948FE
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B948FE#FFFFFF#000000##000000
##B948FE1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFF
Deuteranopia (green-blind)
#1683FA
Tritanopia (blue-blind)
#AF729F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b948fe;
/* rgb */ color: rgb(185, 72, 254);
/* oklch */ color: oklch(63.7% 0.259 309.2);
Tailwind
colors: {
  custom: {
    50: '#d385ff',
    500: '#b948fe',
    950: '#000000',
  },
}
SCSS
$custom: #b948fe;
$custom-light: #d385ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b948fe",
  "rgb": {
    "r": 185,
    "g": 72,
    "b": 254
  },
  "hsl": {
    "h": 277.253,
    "s": 98.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6372,
    "c": 0.25875,
    "h": 309.2
  },
  "luminance": 0.22105
}

Semantic roles & 50–950 ramp

primary
#B948FE
secondary
#C9F1B1
accent
#E60057
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #B948FE

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

Preview Lab → · Contrast checker → · Palette generator →

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