#B340C7#B340C7

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

Color values

HEX#B340C7
RGBrgb(179, 64, 199)
HSLhsl(291, 55%, 52%)
HSVhsv(291, 68%, 78%)
CMYKcmyk(10.1%, 67.8%, 0%, 22%)
CIE-LABlab(48.73, 64.17, -48.41)
CIE-LCHlch(48.73, 80.38, 322.97°)
OKLaboklab(58.59% 0.1692 -0.1352)
OKLCHoklch(58.59% 0.217 321.4)
XYZxyz(30.7315, 17.3756, 55.7569)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340C7 #54C740
analogous
#7040C7 #B340C7 #C74098
triadic
#B340C7 #C7B340 #40C7B3
tetradic
#B340C7 #C77040 #54C740 #4098C7
square
#B340C7 #C77040 #54C740 #4098C7
split-complementary
#B340C7 #98C740 #40C770
monochromatic
#61206D #8C2E9C #B340C7 #C66FD5 #D99FE3

Accessibility & contrast

On white

4.69
#B340C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B340C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B340C7
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340C7#FFFFFF#000000##FFFFFF
##B340C71.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116CCB
Deuteranopia (green-blind)
#5078C4
Tritanopia (blue-blind)
#B5587F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b340c7;
/* rgb */ color: rgb(179, 64, 199);
/* oklch */ color: oklch(58.6% 0.217 321.4);
Tailwind
colors: {
  custom: {
    50: '#cd7ed8',
    500: '#b340c7',
    950: '#000000',
  },
}
SCSS
$custom: #b340c7;
$custom-light: #cd7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#b340c7",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 291.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58589,
    "c": 0.21656,
    "h": 321.4
  },
  "luminance": 0.17374
}

Semantic roles & 50–950 ramp

primary
#B340C7
secondary
#9DCF94
accent
#DE4A60
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340C7

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

Preview Lab → · Contrast checker → · Palette generator →

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