#B340B2#B340B2

#B340B2 is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.199 H 328.1°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B340B2
RGBrgb(179, 64, 178)
HSLhsl(301, 47%, 48%)
HSVhsv(301, 64%, 70%)
CMYKcmyk(0%, 64.2%, 0.6%, 29.8%)
CIE-LABlab(47.58, 60.45, -38.01)
CIE-LCHlch(47.58, 71.40, 327.84°)
OKLaboklab(57.39% 0.1689 -0.1049)
OKLCHoklch(57.39% 0.199 328.1)
XYZxyz(28.4593, 16.4668, 43.7903)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340B2 #40B341
analogous
#7B40B3 #B340B2 #B34078
triadic
#B340B2 #B2B340 #40B2B3
tetradic
#B340B2 #B37B40 #40B341 #4078B3
square
#B340B2 #B37B40 #40B341 #4078B3
split-complementary
#B340B2 #78B340 #40B37B
monochromatic
#592058 #863085 #B340B2 #C967C8 #D994D8

Accessibility & contrast

On white

4.89
#B340B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B340B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340B2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340B2#FFFFFF#000000##FFFFFF
##B340B21.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#B94F73
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b340b2;
/* rgb */ color: rgb(179, 64, 178);
/* oklch */ color: oklch(57.4% 0.199 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd7dc9',
    500: '#b340b2',
    950: '#000000',
  },
}
SCSS
$custom: #b340b2;
$custom-light: #cd7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b340b2",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 300.522,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57389,
    "c": 0.19881,
    "h": 328.1
  },
  "luminance": 0.16465
}

Semantic roles & 50–950 ramp

primary
#B340B2
secondary
#8AC48B
accent
#D75251
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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