#B340C2#B340C2

#B340C2 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.212 H 322.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B340C2
RGBrgb(179, 64, 194)
HSLhsl(293, 52%, 51%)
HSVhsv(293, 67%, 76%)
CMYKcmyk(7.7%, 67%, 0%, 23.9%)
CIE-LABlab(48.45, 63.26, -45.97)
CIE-LCHlch(48.45, 78.20, 324.00°)
OKLaboklab(58.29% 0.1693 -0.1281)
OKLCHoklch(58.29% 0.212 322.9)
XYZxyz(30.1605, 17.1472, 52.7496)
Luminance0.1715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340C2 #4FC240
analogous
#7240C2 #B340C2 #C24090
triadic
#B340C2 #C2B340 #40C2B3
tetradic
#B340C2 #C27240 #4FC240 #4090C2
square
#B340C2 #C27240 #4FC240 #4090C2
split-complementary
#B340C2 #90C240 #40C272
monochromatic
#5F2167 #893095 #B340C2 #C56ED1 #D89DE0

Accessibility & contrast

On white

4.74
#B340C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B340C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340C2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340C2#FFFFFF#000000##FFFFFF
##B340C21.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC6
Deuteranopia (green-blind)
#5378BF
Tritanopia (blue-blind)
#B6567C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b340c2;
/* rgb */ color: rgb(179, 64, 194);
/* oklch */ color: oklch(58.3% 0.212 322.9);
Tailwind
colors: {
  custom: {
    50: '#cd7ed5',
    500: '#b340c2',
    950: '#000000',
  },
}
SCSS
$custom: #b340c2;
$custom-light: #cd7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#b340c2",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 293.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58292,
    "c": 0.21226,
    "h": 322.9
  },
  "luminance": 0.17146
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B340C2

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

Preview Lab → · Contrast checker → · Palette generator →

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