#B340A2#B340A2

#B340A2 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.6% C 0.186 H 334.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B340A2
RGBrgb(179, 64, 162)
HSLhsl(309, 47%, 48%)
HSVhsv(309, 64%, 70%)
CMYKcmyk(0%, 64.2%, 9.5%, 29.8%)
CIE-LABlab(46.79, 57.81, -29.80)
CIE-LCHlch(46.79, 65.04, 332.73°)
OKLaboklab(56.56% 0.1674 -0.0813)
OKLCHoklch(56.56% 0.186 334.1)
XYZxyz(26.9456, 15.8613, 35.8178)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340A2 #40B351
analogous
#8B40B3 #B340A2 #B34068
triadic
#B340A2 #A2B340 #40A2B3
tetradic
#B340A2 #B38B40 #40B351 #4068B3
square
#B340A2 #B38B40 #40B351 #4068B3
split-complementary
#B340A2 #68B340 #40B38B
monochromatic
#592050 #863079 #B340A2 #C967BA #D994CF

Accessibility & contrast

On white

5.03
#B340A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B340A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340A2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340A2#FFFFFF#000000##FFFFFF
##B340A21.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E64A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#BB486B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b340a2;
/* rgb */ color: rgb(179, 64, 162);
/* oklch */ color: oklch(56.6% 0.186 334.1);
Tailwind
colors: {
  custom: {
    50: '#cd7dbe',
    500: '#b340a2',
    950: '#000000',
  },
}
SCSS
$custom: #b340a2;
$custom-light: #cd7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b340a2",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 308.87,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5656,
    "c": 0.18609,
    "h": 334.1
  },
  "luminance": 0.15859
}

Semantic roles & 50–950 ramp

primary
#B340A2
secondary
#8AC493
accent
#D76551
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B340A2

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

Preview Lab → · Contrast checker → · Palette generator →

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