#B340AE#B340AE

#B340AE is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.2% C 0.196 H 329.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B340AE
RGBrgb(179, 64, 174)
HSLhsl(303, 47%, 48%)
HSVhsv(303, 64%, 70%)
CMYKcmyk(0%, 64.2%, 2.8%, 29.8%)
CIE-LABlab(47.38, 59.77, -35.98)
CIE-LCHlch(47.38, 69.76, 328.95°)
OKLaboklab(57.18% 0.1686 -0.0991)
OKLCHoklch(57.18% 0.196 329.6)
XYZxyz(28.0636, 16.3085, 41.7059)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340AE #40B345
analogous
#7F40B3 #B340AE #B34074
triadic
#B340AE #AEB340 #40AEB3
tetradic
#B340AE #B37F40 #40B345 #4074B3
square
#B340AE #B37F40 #40B345 #4074B3
split-complementary
#B340AE #74B340 #40B37F
monochromatic
#592056 #863082 #B340AE #C967C5 #D994D6

Accessibility & contrast

On white

4.93
#B340AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B340AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340AE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340AE#FFFFFF#000000##FFFFFF
##B340AE1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3566B1
Deuteranopia (green-blind)
#5F76AB
Tritanopia (blue-blind)
#B94D71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b340ae;
/* rgb */ color: rgb(179, 64, 174);
/* oklch */ color: oklch(57.2% 0.196 329.6);
Tailwind
colors: {
  custom: {
    50: '#cd7dc6',
    500: '#b340ae',
    950: '#000000',
  },
}
SCSS
$custom: #b340ae;
$custom-light: #cd7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b340ae",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 302.609,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57175,
    "c": 0.19555,
    "h": 329.6
  },
  "luminance": 0.16306
}

Semantic roles & 50–950 ramp

primary
#B340AE
secondary
#8AC48D
accent
#D75751
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B340AE

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

Preview Lab → · Contrast checker → · Palette generator →

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