#B340C3#B340C3

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

Color values

HEX#B340C3
RGBrgb(179, 64, 195)
HSLhsl(293, 52%, 51%)
HSVhsv(293, 67%, 76%)
CMYKcmyk(8.2%, 67.2%, 0%, 23.5%)
CIE-LABlab(48.50, 63.44, -46.46)
CIE-LCHlch(48.50, 78.63, 323.79°)
OKLaboklab(58.35% 0.1693 -0.1295)
OKLCHoklch(58.35% 0.213 322.6)
XYZxyz(30.2731, 17.1923, 53.3431)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340C3 #50C340
analogous
#7140C3 #B340C3 #C34091
triadic
#B340C3 #C3B340 #40C3B3
tetradic
#B340C3 #C37140 #50C340 #4091C3
square
#B340C3 #C37140 #50C340 #4091C3
split-complementary
#B340C3 #91C340 #40C371
monochromatic
#5F2168 #8A2F97 #B340C3 #C66FD2 #D89DE0

Accessibility & contrast

On white

4.73
#B340C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#B340C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340C3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340C3#FFFFFF#000000##FFFFFF
##B340C31.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6BC7
Deuteranopia (green-blind)
#5278C0
Tritanopia (blue-blind)
#B5567D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b340c3;
/* rgb */ color: rgb(179, 64, 195);
/* oklch */ color: oklch(58.4% 0.213 322.6);
Tailwind
colors: {
  custom: {
    50: '#cd7ed6',
    500: '#b340c3',
    950: '#000000',
  },
}
SCSS
$custom: #b340c3;
$custom-light: #cd7ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#b340c3",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 292.672,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58351,
    "c": 0.21311,
    "h": 322.6
  },
  "luminance": 0.17191
}

Semantic roles & 50–950 ramp

primary
#B340C3
secondary
#99CC92
accent
#DC4C5E
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B340C3

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

Preview Lab → · Contrast checker → · Palette generator →

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