#B340CC#B340CC

#B340CC is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.221 H 319.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B340CC
RGBrgb(179, 64, 204)
HSLhsl(289, 58%, 53%)
HSVhsv(289, 69%, 80%)
CMYKcmyk(12.3%, 68.6%, 0%, 20%)
CIE-LABlab(49.02, 65.09, -50.82)
CIE-LCHlch(49.02, 82.58, 322.02°)
OKLaboklab(58.89% 0.169 -0.1422)
OKLCHoklch(58.89% 0.221 319.9)
XYZxyz(31.3215, 17.6117, 58.8646)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340CC #59CC40
analogous
#6D40CC #B340CC #CC409F
triadic
#B340CC #CCB340 #40CCB3
tetradic
#B340CC #CC6D40 #59CC40 #409FCC
square
#B340CC #CC6D40 #59CC40 #409FCC
split-complementary
#B340CC #9FCC40 #40CC6D
monochromatic
#641F73 #8E2CA3 #B340CC #C670D9 #D9A1E6

Accessibility & contrast

On white

4.64
#B340CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B340CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B340CC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340CC#FFFFFF#000000##FFFFFF
##B340CC1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD0
Deuteranopia (green-blind)
#4C78C9
Tritanopia (blue-blind)
#B45A81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b340cc;
/* rgb */ color: rgb(179, 64, 204);
/* oklch */ color: oklch(58.9% 0.221 319.9);
Tailwind
colors: {
  custom: {
    50: '#cd7edc',
    500: '#b340cc',
    950: '#000000',
  },
}
SCSS
$custom: #b340cc;
$custom-light: #cd7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#b340cc",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 289.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58892,
    "c": 0.22091,
    "h": 319.9
  },
  "luminance": 0.1761
}

Semantic roles & 50–950 ramp

primary
#B340CC
secondary
#A0D295
accent
#E14762
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340CC

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

Preview Lab → · Contrast checker → · Palette generator →

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