#B340CB#B340CB

#B340CB is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.220 H 320.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B340CB
RGBrgb(179, 64, 203)
HSLhsl(290, 57%, 52%)
HSVhsv(290, 68%, 80%)
CMYKcmyk(11.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(48.96, 64.91, -50.34)
CIE-LCHlch(48.96, 82.14, 322.20°)
OKLaboklab(58.83% 0.1691 -0.1408)
OKLCHoklch(58.83% 0.22 320.2)
XYZxyz(31.2020, 17.5638, 58.2350)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340CB #58CB40
analogous
#6D40CB #B340CB #CB409E
triadic
#B340CB #CBB340 #40CBB3
tetradic
#B340CB #CB6D40 #58CB40 #409ECB
square
#B340CB #CB6D40 #58CB40 #409ECB
split-complementary
#B340CB #9ECB40 #40CB6D
monochromatic
#631F72 #8D2CA2 #B340CB #C670D8 #D9A0E5

Accessibility & contrast

On white

4.65
#B340CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#B340CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B340CB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340CB#FFFFFF#000000##FFFFFF
##B340CB1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016CCF
Deuteranopia (green-blind)
#4D78C8
Tritanopia (blue-blind)
#B45981
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b340cb;
/* rgb */ color: rgb(179, 64, 203);
/* oklch */ color: oklch(58.8% 0.220 320.2);
Tailwind
colors: {
  custom: {
    50: '#cd7edb',
    500: '#b340cb',
    950: '#000000',
  },
}
SCSS
$custom: #b340cb;
$custom-light: #cd7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b340cb",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 289.64,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58831,
    "c": 0.22003,
    "h": 320.2
  },
  "luminance": 0.17562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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