#B340BC#B340BC

#B340BC is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 57.9% C 0.207 H 324.8°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#B340BC
RGBrgb(179, 64, 188)
HSLhsl(296, 49%, 49%)
HSVhsv(296, 66%, 74%)
CMYKcmyk(4.8%, 66%, 0%, 26.3%)
CIE-LABlab(48.11, 62.18, -43.01)
CIE-LCHlch(48.11, 75.61, 325.33°)
OKLaboklab(57.95% 0.1692 -0.1195)
OKLCHoklch(57.95% 0.207 324.8)
XYZxyz(29.5002, 16.8831, 49.2721)
Luminance0.1688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340BC #49BC40
analogous
#7540BC #B340BC #BC4087
triadic
#B340BC #BCB340 #40BCB3
tetradic
#B340BC #BC7540 #49BC40 #4087BC
square
#B340BC #BC7540 #49BC40 #4087BC
split-complementary
#B340BC #87BC40 #40BC75
monochromatic
#5C2161 #88308E #B340BC #C66CCD #D89ADD

Accessibility & contrast

On white

4.80
#B340BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B340BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340BC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340BC#FFFFFF#000000##FFFFFF
##B340BC1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2669C0
Deuteranopia (green-blind)
#5777B9
Tritanopia (blue-blind)
#B75379
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b340bc;
/* rgb */ color: rgb(179, 64, 188);
/* oklch */ color: oklch(57.9% 0.207 324.8);
Tailwind
colors: {
  custom: {
    50: '#cd7ed1',
    500: '#b340bc',
    950: '#000000',
  },
}
SCSS
$custom: #b340bc;
$custom-light: #cd7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#b340bc",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 295.645,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57945,
    "c": 0.20715,
    "h": 324.8
  },
  "luminance": 0.16881
}

Semantic roles & 50–950 ramp

primary
#B340BC
secondary
#93C98F
accent
#D94F59
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B340BC

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

Preview Lab → · Contrast checker → · Palette generator →

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