#B340CD#B340CD

#B340CD is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.222 H 319.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B340CD
RGBrgb(179, 64, 205)
HSLhsl(289, 59%, 53%)
HSVhsv(289, 69%, 80%)
CMYKcmyk(12.7%, 68.8%, 0%, 19.6%)
CIE-LABlab(49.08, 65.28, -51.30)
CIE-LCHlch(49.08, 83.03, 321.84°)
OKLaboklab(58.95% 0.169 -0.1436)
OKLCHoklch(58.95% 0.222 319.6)
XYZxyz(31.4419, 17.6598, 59.4983)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340CD #5ACD40
analogous
#6C40CD #B340CD #CD40A1
triadic
#B340CD #CDB340 #40CDB3
tetradic
#B340CD #CD6C40 #5ACD40 #40A1CD
square
#B340CD #CD6C40 #5ACD40 #40A1CD
split-complementary
#B340CD #A1CD40 #40CD6C
monochromatic
#641E74 #8E2BA5 #B340CD #C671DA #DAA1E6

Accessibility & contrast

On white

4.63
#B340CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B340CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B340CD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340CD#FFFFFF#000000##FFFFFF
##B340CD1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#4B79CA
Tritanopia (blue-blind)
#B35A82
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b340cd;
/* rgb */ color: rgb(179, 64, 205);
/* oklch */ color: oklch(59.0% 0.222 319.6);
Tailwind
colors: {
  custom: {
    50: '#cd7edd',
    500: '#b340cd',
    950: '#000000',
  },
}
SCSS
$custom: #b340cd;
$custom-light: #cd7edd;
$custom-dark: #000000;
JSON
{
  "hex": "#b340cd",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 288.936,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58953,
    "c": 0.22178,
    "h": 319.6
  },
  "luminance": 0.17658
}

Semantic roles & 50–950 ramp

primary
#B340CD
secondary
#A1D396
accent
#E24663
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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