#B342CF#B342CF

#B342CF is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.221 H 319.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B342CF
RGBrgb(179, 66, 207)
HSLhsl(288, 59%, 54%)
HSVhsv(288, 68%, 81%)
CMYKcmyk(13.5%, 68.1%, 0%, 18.8%)
CIE-LABlab(49.48, 64.87, -51.81)
CIE-LCHlch(49.48, 83.02, 321.38°)
OKLaboklab(59.28% 0.1668 -0.1451)
OKLCHoklch(59.28% 0.221 319)
XYZxyz(31.7996, 17.9866, 60.8161)
Luminance0.1799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342CF #5ECF42
analogous
#6C42CF #B342CF #CF42A4
triadic
#B342CF #CFB342 #42CFB3
tetradic
#B342CF #CF6C42 #5ECF42 #42A4CF
square
#B342CF #CF6C42 #5ECF42 #42A4CF
split-complementary
#B342CF #A4CF42 #42CF6C
monochromatic
#661F78 #902BA9 #B342CF #C773DB #DAA4E8

Accessibility & contrast

On white

4.57
#B342CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#B342CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342CF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342CF#FFFFFF#000000##000000
##B342CF1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#4B79CC
Tritanopia (blue-blind)
#B35C84
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b342cf;
/* rgb */ color: rgb(179, 66, 207);
/* oklch */ color: oklch(59.3% 0.221 319.0);
Tailwind
colors: {
  custom: {
    50: '#cd7fde',
    500: '#b342cf',
    950: '#000000',
  },
}
SCSS
$custom: #b342cf;
$custom-light: #cd7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b342cf",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 288.085,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59277,
    "c": 0.22111,
    "h": 319
  },
  "luminance": 0.17985
}

Semantic roles & 50–950 ramp

primary
#B342CF
secondary
#A4D598
accent
#E34564
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B342CF

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

Preview Lab → · Contrast checker → · Palette generator →

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