#B340C5#B340C5

#B340C5 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.215 H 322.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B340C5
RGBrgb(179, 64, 197)
HSLhsl(292, 53%, 51%)
HSVhsv(292, 68%, 77%)
CMYKcmyk(9.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(48.62, 63.80, -47.43)
CIE-LCHlch(48.62, 79.50, 323.37°)
OKLaboklab(58.47% 0.1692 -0.1323)
OKLCHoklch(58.47% 0.215 322)
XYZxyz(30.5008, 17.2834, 54.5420)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340C5 #52C540
analogous
#7040C5 #B340C5 #C54094
triadic
#B340C5 #C5B340 #40C5B3
tetradic
#B340C5 #C57040 #52C540 #4094C5
square
#B340C5 #C57040 #52C540 #4094C5
split-complementary
#B340C5 #94C540 #40C570
monochromatic
#60206A #8B2F99 #B340C5 #C66FD3 #D89EE2

Accessibility & contrast

On white

4.71
#B340C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B340C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340C5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340C5#FFFFFF#000000##FFFFFF
##B340C51.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166BC9
Deuteranopia (green-blind)
#5178C2
Tritanopia (blue-blind)
#B5577E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b340c5;
/* rgb */ color: rgb(179, 64, 197);
/* oklch */ color: oklch(58.5% 0.215 322.0);
Tailwind
colors: {
  custom: {
    50: '#cd7ed7',
    500: '#b340c5',
    950: '#000000',
  },
}
SCSS
$custom: #b340c5;
$custom-light: #cd7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#b340c5",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 291.88,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58469,
    "c": 0.21483,
    "h": 322
  },
  "luminance": 0.17282
}

Semantic roles & 50–950 ramp

primary
#B340C5
secondary
#9BCE93
accent
#DD4B5F
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B340C5

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

Preview Lab → · Contrast checker → · Palette generator →

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