#B340AA#B340AA

#B340AA is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.0% C 0.192 H 331.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B340AA
RGBrgb(179, 64, 170)
HSLhsl(305, 47%, 48%)
HSVhsv(305, 64%, 70%)
CMYKcmyk(0%, 64.2%, 5%, 29.8%)
CIE-LABlab(47.18, 59.10, -33.93)
CIE-LCHlch(47.18, 68.15, 330.14°)
OKLaboklab(56.97% 0.1683 -0.0932)
OKLCHoklch(56.97% 0.192 331)
XYZxyz(27.6794, 16.1548, 39.6827)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340AA #40B349
analogous
#8340B3 #B340AA #B34070
triadic
#B340AA #AAB340 #40AAB3
tetradic
#B340AA #B38340 #40B349 #4070B3
square
#B340AA #B38340 #40B349 #4070B3
split-complementary
#B340AA #70B340 #40B383
monochromatic
#592054 #86307F #B340AA #C967C1 #D994D4

Accessibility & contrast

On white

4.96
#B340AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B340AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340AA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340AA#FFFFFF#000000##FFFFFF
##B340AA1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AD
Deuteranopia (green-blind)
#6076A7
Tritanopia (blue-blind)
#BA4C6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b340aa;
/* rgb */ color: rgb(179, 64, 170);
/* oklch */ color: oklch(57.0% 0.192 331.0);
Tailwind
colors: {
  custom: {
    50: '#cd7dc3',
    500: '#b340aa',
    950: '#000000',
  },
}
SCSS
$custom: #b340aa;
$custom-light: #cd7dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b340aa",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 304.696,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56965,
    "c": 0.19233,
    "h": 331
  },
  "luminance": 0.16153
}

Semantic roles & 50–950 ramp

primary
#B340AA
secondary
#8AC48F
accent
#D75B51
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B340AA

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

Preview Lab → · Contrast checker → · Palette generator →

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