#B340BE#B340BE

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

Color values

HEX#B340BE
RGBrgb(179, 64, 190)
HSLhsl(295, 50%, 50%)
HSVhsv(295, 66%, 75%)
CMYKcmyk(5.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(48.22, 62.54, -44.00)
CIE-LCHlch(48.22, 76.47, 324.87°)
OKLaboklab(58.06% 0.1693 -0.1223)
OKLCHoklch(58.06% 0.209 324.1)
XYZxyz(29.7173, 16.9700, 50.4155)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340BE #4BBE40
analogous
#7440BE #B340BE #BE408A
triadic
#B340BE #BEB340 #40BEB3
tetradic
#B340BE #BE7440 #4BBE40 #408ABE
square
#B340BE #BE7440 #4BBE40 #408ABE
split-complementary
#B340BE #8ABE40 #40BE74
monochromatic
#5D2162 #883190 #B340BE #C56DCE #D89BDD

Accessibility & contrast

On white

4.78
#B340BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B340BE
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340BE#FFFFFF#000000##FFFFFF
##B340BE1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236AC2
Deuteranopia (green-blind)
#5677BB
Tritanopia (blue-blind)
#B6547A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b340be;
/* rgb */ color: rgb(179, 64, 190);
/* oklch */ color: oklch(58.1% 0.209 324.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ed2',
    500: '#b340be',
    950: '#000000',
  },
}
SCSS
$custom: #b340be;
$custom-light: #cd7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#b340be",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 294.762,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5806,
    "c": 0.20884,
    "h": 324.1
  },
  "luminance": 0.16968
}

Semantic roles & 50–950 ramp

primary
#B340BE
secondary
#95C990
accent
#D94F5B
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B340BE

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

Preview Lab → · Contrast checker → · Palette generator →

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