#B340B0#B340B0

#B340B0 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.3% C 0.197 H 328.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B340B0
RGBrgb(179, 64, 176)
HSLhsl(302, 47%, 48%)
HSVhsv(302, 64%, 70%)
CMYKcmyk(0%, 64.2%, 1.7%, 29.8%)
CIE-LABlab(47.48, 60.11, -36.99)
CIE-LCHlch(47.48, 70.58, 328.39°)
OKLaboklab(57.28% 0.1687 -0.102)
OKLCHoklch(57.28% 0.197 328.8)
XYZxyz(28.2600, 16.3870, 42.7404)
Luminance0.1638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340B0 #40B343
analogous
#7C40B3 #B340B0 #B34077
triadic
#B340B0 #B0B340 #40B0B3
tetradic
#B340B0 #B37C40 #40B343 #4077B3
square
#B340B0 #B37C40 #40B343 #4077B3
split-complementary
#B340B0 #77B340 #40B37C
monochromatic
#592057 #863084 #B340B0 #C967C6 #D994D7

Accessibility & contrast

On white

4.91
#B340B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B340B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340B0
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340B0#FFFFFF#000000##FFFFFF
##B340B01.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3367B3
Deuteranopia (green-blind)
#5E76AD
Tritanopia (blue-blind)
#B94E72
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b340b0;
/* rgb */ color: rgb(179, 64, 176);
/* oklch */ color: oklch(57.3% 0.197 328.8);
Tailwind
colors: {
  custom: {
    50: '#cd7dc8',
    500: '#b340b0',
    950: '#000000',
  },
}
SCSS
$custom: #b340b0;
$custom-light: #cd7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#b340b0",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 301.565,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57282,
    "c": 0.19717,
    "h": 328.8
  },
  "luminance": 0.16385
}

Semantic roles & 50–950 ramp

primary
#B340B0
secondary
#8AC48C
accent
#D75451
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B340B0

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

Preview Lab → · Contrast checker → · Palette generator →

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