#B340BD#B340BD

#B340BD is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.208 H 324.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B340BD
RGBrgb(179, 64, 189)
HSLhsl(295, 49%, 50%)
HSVhsv(295, 66%, 74%)
CMYKcmyk(5.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(48.17, 62.36, -43.50)
CIE-LCHlch(48.17, 76.04, 325.10°)
OKLaboklab(58% 0.1693 -0.1209)
OKLCHoklch(58% 0.208 324.5)
XYZxyz(29.6083, 16.9264, 49.8418)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340BD #4ABD40
analogous
#7540BD #B340BD #BD4089
triadic
#B340BD #BDB340 #40BDB3
tetradic
#B340BD #BD7540 #4ABD40 #4089BD
square
#B340BD #BD7540 #4ABD40 #4089BD
split-complementary
#B340BD #89BD40 #40BD75
monochromatic
#5C2162 #88318F #B340BD #C66DCD #D89ADD

Accessibility & contrast

On white

4.79
#B340BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B340BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340BD
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340BD#FFFFFF#000000##FFFFFF
##B340BD1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2569C1
Deuteranopia (green-blind)
#5677BA
Tritanopia (blue-blind)
#B75379
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b340bd;
/* rgb */ color: rgb(179, 64, 189);
/* oklch */ color: oklch(58.0% 0.208 324.5);
Tailwind
colors: {
  custom: {
    50: '#cd7ed1',
    500: '#b340bd',
    950: '#000000',
  },
}
SCSS
$custom: #b340bd;
$custom-light: #cd7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#b340bd",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 295.2,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58002,
    "c": 0.208,
    "h": 324.5
  },
  "luminance": 0.16925
}

Semantic roles & 50–950 ramp

primary
#B340BD
secondary
#94C990
accent
#D94F5A
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B340BD

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

Preview Lab → · Contrast checker → · Palette generator →

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