#B340AF#B340AF

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

Color values

HEX#B340AF
RGBrgb(179, 64, 175)
HSLhsl(302, 47%, 48%)
HSVhsv(302, 64%, 70%)
CMYKcmyk(0%, 64.2%, 2.2%, 29.8%)
CIE-LABlab(47.43, 59.94, -36.49)
CIE-LCHlch(47.43, 70.17, 328.67°)
OKLaboklab(57.23% 0.1687 -0.1005)
OKLCHoklch(57.23% 0.196 329.2)
XYZxyz(28.1614, 16.3476, 42.2213)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340AF #40B344
analogous
#7D40B3 #B340AF #B34075
triadic
#B340AF #AFB340 #40AFB3
tetradic
#B340AF #B37D40 #40B344 #4075B3
square
#B340AF #B37D40 #40B344 #4075B3
split-complementary
#B340AF #75B340 #40B37D
monochromatic
#592057 #863083 #B340AF #C967C5 #D994D7

Accessibility & contrast

On white

4.92
#B340AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B340AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340AF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340AF#FFFFFF#000000##FFFFFF
##B340AF1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B2
Deuteranopia (green-blind)
#5E76AC
Tritanopia (blue-blind)
#B94E72
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b340af;
/* rgb */ color: rgb(179, 64, 175);
/* oklch */ color: oklch(57.2% 0.196 329.2);
Tailwind
colors: {
  custom: {
    50: '#cd7dc7',
    500: '#b340af',
    950: '#000000',
  },
}
SCSS
$custom: #b340af;
$custom-light: #cd7dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b340af",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 302.087,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.19636,
    "h": 329.2
  },
  "luminance": 0.16346
}

Semantic roles & 50–950 ramp

primary
#B340AF
secondary
#8AC48C
accent
#D75651
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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