#B342CB#B342CB

#B342CB is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.218 H 320.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B342CB
RGBrgb(179, 66, 203)
HSLhsl(289, 57%, 53%)
HSVhsv(289, 67%, 80%)
CMYKcmyk(11.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(49.24, 64.12, -49.89)
CIE-LCHlch(49.24, 81.24, 322.11°)
OKLaboklab(59.03% 0.1669 -0.1395)
OKLCHoklch(59.03% 0.218 320.1)
XYZxyz(31.3168, 17.7935, 58.2732)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342CB #5ACB42
analogous
#6E42CB #B342CB #CB429E
triadic
#B342CB #CBB342 #42CBB3
tetradic
#B342CB #CB6E42 #5ACB42 #429ECB
square
#B342CB #CB6E42 #5ACB42 #429ECB
split-complementary
#B342CB #9ECB42 #42CB6E
monochromatic
#642073 #8E2DA3 #B342CB #C672D8 #DAA2E5

Accessibility & contrast

On white

4.61
#B342CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#B342CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B342CB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342CB#FFFFFF#000000##FFFFFF
##B342CB1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6DCF
Deuteranopia (green-blind)
#4E79C8
Tritanopia (blue-blind)
#B45B81
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b342cb;
/* rgb */ color: rgb(179, 66, 203);
/* oklch */ color: oklch(59.0% 0.218 320.1);
Tailwind
colors: {
  custom: {
    50: '#cd7fdb',
    500: '#b342cb',
    950: '#000000',
  },
}
SCSS
$custom: #b342cb;
$custom-light: #cd7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b342cb",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 289.489,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59033,
    "c": 0.21758,
    "h": 320.1
  },
  "luminance": 0.17792
}

Semantic roles & 50–950 ramp

primary
#B342CB
secondary
#A1D297
accent
#E04862
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B342CB

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

Preview Lab → · Contrast checker → · Palette generator →

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