#B340C8#B340C8

#B340C8 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.6% C 0.217 H 321.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B340C8
RGBrgb(179, 64, 200)
HSLhsl(291, 55%, 52%)
HSVhsv(291, 68%, 78%)
CMYKcmyk(10.5%, 68%, 0%, 21.6%)
CIE-LABlab(48.79, 64.35, -48.89)
CIE-LCHlch(48.79, 80.82, 322.78°)
OKLaboklab(58.65% 0.1692 -0.1366)
OKLCHoklch(58.65% 0.217 321.1)
XYZxyz(30.8479, 17.4222, 56.3703)
Luminance0.1742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340C8 #55C840
analogous
#6F40C8 #B340C8 #C84099
triadic
#B340C8 #C8B340 #40C8B3
tetradic
#B340C8 #C86F40 #55C840 #4099C8
square
#B340C8 #C86F40 #55C840 #4099C8
split-complementary
#B340C8 #99C840 #40C86F
monochromatic
#62206E #8C2D9D #B340C8 #C670D6 #D99FE3

Accessibility & contrast

On white

4.68
#B340C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B340C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340C8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340C8#FFFFFF#000000##FFFFFF
##B340C81.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6CCC
Deuteranopia (green-blind)
#4F78C5
Tritanopia (blue-blind)
#B4587F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b340c8;
/* rgb */ color: rgb(179, 64, 200);
/* oklch */ color: oklch(58.6% 0.217 321.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ed9',
    500: '#b340c8',
    950: '#000000',
  },
}
SCSS
$custom: #b340c8;
$custom-light: #cd7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#b340c8",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 290.735,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58649,
    "c": 0.21743,
    "h": 321.1
  },
  "luminance": 0.17421
}

Semantic roles & 50–950 ramp

primary
#B340C8
secondary
#9DD094
accent
#DF4960
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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