#B340CF#B340CF

#B340CF is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.224 H 319.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B340CF
RGBrgb(179, 64, 207)
HSLhsl(288, 60%, 53%)
HSVhsv(288, 69%, 81%)
CMYKcmyk(13.5%, 69.1%, 0%, 18.8%)
CIE-LABlab(49.20, 65.66, -52.26)
CIE-LCHlch(49.20, 83.91, 321.48°)
OKLaboklab(59.08% 0.1689 -0.1464)
OKLCHoklch(59.08% 0.224 319.1)
XYZxyz(31.6848, 17.7570, 60.7778)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340CF #5CCF40
analogous
#6B40CF #B340CF #CF40A3
triadic
#B340CF #CFB340 #40CFB3
tetradic
#B340CF #CF6B40 #5CCF40 #40A3CF
square
#B340CF #CF6B40 #5CCF40 #40A3CF
split-complementary
#B340CF #A3CF40 #40CF6B
monochromatic
#651E77 #8F2AA8 #B340CF #C671DB #DAA2E8

Accessibility & contrast

On white

4.61
#B340CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B340CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B340CF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340CF#FFFFFF#000000##FFFFFF
##B340CF1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#4979CC
Tritanopia (blue-blind)
#B35B83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b340cf;
/* rgb */ color: rgb(179, 64, 207);
/* oklch */ color: oklch(59.1% 0.224 319.1);
Tailwind
colors: {
  custom: {
    50: '#ce7ede',
    500: '#b340cf',
    950: '#000000',
  },
}
SCSS
$custom: #b340cf;
$custom-light: #ce7ede;
$custom-dark: #000000;
JSON
{
  "hex": "#b340cf",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 288.252,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59077,
    "c": 0.22353,
    "h": 319.1
  },
  "luminance": 0.17755
}

Semantic roles & 50–950 ramp

primary
#B340CF
secondary
#A3D497
accent
#E34564
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340CF

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

Preview Lab → · Contrast checker → · Palette generator →

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