#B340AC#B340AC

#B340AC is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.1% C 0.194 H 330.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B340AC
RGBrgb(179, 64, 172)
HSLhsl(304, 47%, 48%)
HSVhsv(304, 64%, 70%)
CMYKcmyk(0%, 64.2%, 3.9%, 29.8%)
CIE-LABlab(47.28, 59.43, -34.96)
CIE-LCHlch(47.28, 68.95, 329.54°)
OKLaboklab(57.07% 0.1684 -0.0961)
OKLCHoklch(57.07% 0.194 330.3)
XYZxyz(27.8700, 16.2311, 40.6867)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340AC #40B347
analogous
#8040B3 #B340AC #B34073
triadic
#B340AC #ACB340 #40ACB3
tetradic
#B340AC #B38040 #40B347 #4073B3
square
#B340AC #B38040 #40B347 #4073B3
split-complementary
#B340AC #73B340 #40B380
monochromatic
#592055 #863081 #B340AC #C967C3 #D994D5

Accessibility & contrast

On white

4.95
#B340AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B340AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340AC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340AC#FFFFFF#000000##FFFFFF
##B340AC1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766AF
Deuteranopia (green-blind)
#5F76A9
Tritanopia (blue-blind)
#BA4D70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b340ac;
/* rgb */ color: rgb(179, 64, 172);
/* oklch */ color: oklch(57.1% 0.194 330.3);
Tailwind
colors: {
  custom: {
    50: '#cd7dc5',
    500: '#b340ac',
    950: '#000000',
  },
}
SCSS
$custom: #b340ac;
$custom-light: #cd7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#b340ac",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 303.652,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57069,
    "c": 0.19394,
    "h": 330.3
  },
  "luminance": 0.16229
}

Semantic roles & 50–950 ramp

primary
#B340AC
secondary
#8AC48E
accent
#D75951
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B340AC

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

Preview Lab → · Contrast checker → · Palette generator →

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