#B340B8#B340B8

#B340B8 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.204 H 326.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B340B8
RGBrgb(179, 64, 184)
HSLhsl(298, 48%, 49%)
HSVhsv(298, 65%, 72%)
CMYKcmyk(2.7%, 65.2%, 0%, 27.8%)
CIE-LABlab(47.90, 61.48, -41.02)
CIE-LCHlch(47.90, 73.91, 326.29°)
OKLaboklab(57.72% 0.1691 -0.1137)
OKLCHoklch(57.72% 0.204 326.1)
XYZxyz(29.0750, 16.7130, 47.0326)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340B8 #45B840
analogous
#7740B8 #B340B8 #B84081
triadic
#B340B8 #B8B340 #40B8B3
tetradic
#B340B8 #B87740 #45B840 #4081B8
square
#B340B8 #B87740 #45B840 #4081B8
split-complementary
#B340B8 #81B840 #40B877
monochromatic
#5B205D #87308B #B340B8 #C76ACB #D897DB

Accessibility & contrast

On white

4.84
#B340B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B340B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340B8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340B8#FFFFFF#000000##FFFFFF
##B340B81.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BC
Deuteranopia (green-blind)
#5977B5
Tritanopia (blue-blind)
#B75177
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b340b8;
/* rgb */ color: rgb(179, 64, 184);
/* oklch */ color: oklch(57.7% 0.204 326.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ece',
    500: '#b340b8',
    950: '#000000',
  },
}
SCSS
$custom: #b340b8;
$custom-light: #cd7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#b340b8",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 297.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5772,
    "c": 0.20378,
    "h": 326.1
  },
  "luminance": 0.16711
}

Semantic roles & 50–950 ramp

primary
#B340B8
secondary
#8FC78D
accent
#D85056
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B340B8

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

Preview Lab → · Contrast checker → · Palette generator →

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