#B340BB#B340BB

#B340BB is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.206 H 325.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B340BB
RGBrgb(179, 64, 187)
HSLhsl(296, 49%, 49%)
HSVhsv(296, 66%, 73%)
CMYKcmyk(4.3%, 65.8%, 0%, 26.7%)
CIE-LABlab(48.06, 62.01, -42.51)
CIE-LCHlch(48.06, 75.18, 325.57°)
OKLaboklab(57.89% 0.1692 -0.118)
OKLCHoklch(57.89% 0.206 325.1)
XYZxyz(29.3928, 16.8402, 48.7064)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340BB #48BB40
analogous
#7640BB #B340BB #BB4085
triadic
#B340BB #BBB340 #40BBB3
tetradic
#B340BB #BB7640 #48BB40 #4085BB
square
#B340BB #BB7640 #48BB40 #4085BB
split-complementary
#B340BB #85BB40 #40BB76
monochromatic
#5C2160 #87308D #B340BB #C66CCD #D899DC

Accessibility & contrast

On white

4.81
#B340BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#B340BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340BB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340BB#FFFFFF#000000##FFFFFF
##B340BB1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BF
Deuteranopia (green-blind)
#5777B8
Tritanopia (blue-blind)
#B75378
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b340bb;
/* rgb */ color: rgb(179, 64, 187);
/* oklch */ color: oklch(57.9% 0.206 325.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ed0',
    500: '#b340bb',
    950: '#000000',
  },
}
SCSS
$custom: #b340bb;
$custom-light: #cd7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#b340bb",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 296.098,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57889,
    "c": 0.20631,
    "h": 325.1
  },
  "luminance": 0.16838
}

Semantic roles & 50–950 ramp

primary
#B340BB
secondary
#92C88F
accent
#D94F58
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B340BB

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

Preview Lab → · Contrast checker → · Palette generator →

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