#B340CA#B340CA

#B340CA is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.219 H 320.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B340CA
RGBrgb(179, 64, 202)
HSLhsl(290, 57%, 52%)
HSVhsv(290, 68%, 79%)
CMYKcmyk(11.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(48.90, 64.72, -49.86)
CIE-LCHlch(48.90, 81.70, 322.39°)
OKLaboklab(58.77% 0.1691 -0.1394)
OKLCHoklch(58.77% 0.219 320.5)
XYZxyz(31.0832, 17.5163, 57.6094)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340CA #57CA40
analogous
#6E40CA #B340CA #CA409C
triadic
#B340CA #CAB340 #40CAB3
tetradic
#B340CA #CA6E40 #57CA40 #409CCA
square
#B340CA #CA6E40 #57CA40 #409CCA
split-complementary
#B340CA #9CCA40 #40CA6E
monochromatic
#631F70 #8D2CA0 #B340CA #C670D7 #D9A0E5

Accessibility & contrast

On white

4.66
#B340CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#B340CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B340CA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340CA#FFFFFF#000000##FFFFFF
##B340CA1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056CCE
Deuteranopia (green-blind)
#4D78C7
Tritanopia (blue-blind)
#B45980
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b340ca;
/* rgb */ color: rgb(179, 64, 202);
/* oklch */ color: oklch(58.8% 0.219 320.5);
Tailwind
colors: {
  custom: {
    50: '#cd7edb',
    500: '#b340ca',
    950: '#000000',
  },
}
SCSS
$custom: #b340ca;
$custom-light: #cd7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b340ca",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 290,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5877,
    "c": 0.21916,
    "h": 320.5
  },
  "luminance": 0.17515
}

Semantic roles & 50–950 ramp

primary
#B340CA
secondary
#9FD195
accent
#E04861
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340CA

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

Preview Lab → · Contrast checker → · Palette generator →

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