#B340C4#B340C4

#B340C4 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.4% C 0.214 H 322.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B340C4
RGBrgb(179, 64, 196)
HSLhsl(292, 53%, 51%)
HSVhsv(292, 67%, 77%)
CMYKcmyk(8.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(48.56, 63.62, -46.94)
CIE-LCHlch(48.56, 79.07, 323.58°)
OKLaboklab(58.41% 0.1693 -0.1309)
OKLCHoklch(58.41% 0.214 322.3)
XYZxyz(30.3866, 17.2377, 53.9405)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340C4 #51C440
analogous
#7140C4 #B340C4 #C44093
triadic
#B340C4 #C4B340 #40C4B3
tetradic
#B340C4 #C47140 #51C440 #4093C4
square
#B340C4 #C47140 #51C440 #4093C4
split-complementary
#B340C4 #93C440 #40C471
monochromatic
#602069 #8A2F98 #B340C4 #C66FD2 #D89EE1

Accessibility & contrast

On white

4.72
#B340C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B340C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340C4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340C4#FFFFFF#000000##FFFFFF
##B340C41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196BC8
Deuteranopia (green-blind)
#5278C1
Tritanopia (blue-blind)
#B5567D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b340c4;
/* rgb */ color: rgb(179, 64, 196);
/* oklch */ color: oklch(58.4% 0.214 322.3);
Tailwind
colors: {
  custom: {
    50: '#cd7ed6',
    500: '#b340c4',
    950: '#000000',
  },
}
SCSS
$custom: #b340c4;
$custom-light: #cd7ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#b340c4",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 292.273,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5841,
    "c": 0.21398,
    "h": 322.3
  },
  "luminance": 0.17236
}

Semantic roles & 50–950 ramp

primary
#B340C4
secondary
#9ACD93
accent
#DC4C5E
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B340C4

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

Preview Lab → · Contrast checker → · Palette generator →

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