#B340BF#B340BF

#B340BF is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.210 H 323.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B340BF
RGBrgb(179, 64, 191)
HSLhsl(294, 50%, 50%)
HSVhsv(294, 66%, 75%)
CMYKcmyk(6.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(48.28, 62.72, -44.49)
CIE-LCHlch(48.28, 76.90, 324.65°)
OKLaboklab(58.12% 0.1693 -0.1238)
OKLCHoklch(58.12% 0.21 323.8)
XYZxyz(29.8269, 17.0138, 50.9931)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340BF #4CBF40
analogous
#7440BF #B340BF #BF408B
triadic
#B340BF #BFB340 #40BFB3
tetradic
#B340BF #BF7440 #4CBF40 #408BBF
square
#B340BF #BF7440 #4CBF40 #408BBF
split-complementary
#B340BF #8BBF40 #40BF74
monochromatic
#5D2163 #883191 #B340BF #C56ECE #D79CDE

Accessibility & contrast

On white

4.77
#B340BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B340BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340BF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340BF#FFFFFF#000000##FFFFFF
##B340BF1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226AC3
Deuteranopia (green-blind)
#5577BC
Tritanopia (blue-blind)
#B6547A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b340bf;
/* rgb */ color: rgb(179, 64, 191);
/* oklch */ color: oklch(58.1% 0.210 323.8);
Tailwind
colors: {
  custom: {
    50: '#cd7ed3',
    500: '#b340bf',
    950: '#000000',
  },
}
SCSS
$custom: #b340bf;
$custom-light: #cd7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#b340bf",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 294.331,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.58118,
    "c": 0.20969,
    "h": 323.8
  },
  "luminance": 0.17012
}

Semantic roles & 50–950 ramp

primary
#B340BF
secondary
#96CA91
accent
#D94E5C
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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