#B340DC#B340DC

#B340DC is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.9% C 0.235 H 315.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B340DC
RGBrgb(179, 64, 220)
HSLhsl(284, 69%, 56%)
HSVhsv(284, 71%, 86%)
CMYKcmyk(18.6%, 70.9%, 0%, 13.7%)
CIE-LABlab(50.00, 68.14, -58.40)
CIE-LCHlch(50.00, 89.74, 319.40°)
OKLaboklab(59.9% 0.1679 -0.1645)
OKLCHoklch(59.9% 0.235 315.6)
XYZxyz(33.3400, 18.4191, 69.4953)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340DC #69DC40
analogous
#6540DC #B340DC #DC40B7
triadic
#B340DC #DCB340 #40DCB3
tetradic
#B340DC #DC6540 #69DC40 #40B7DC
square
#B340DC #DC6540 #69DC40 #40B7DC
split-complementary
#B340DC #B7DC40 #40DC65
monochromatic
#6B1989 #9423BC #B340DC #C874E5 #DCA7EF

Accessibility & contrast

On white

4.48
#B340DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#B340DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B340DC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340DC#FFFFFF#000000##000000
##B340DC1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#3D7AD9
Tritanopia (blue-blind)
#B0608A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b340dc;
/* rgb */ color: rgb(179, 64, 220);
/* oklch */ color: oklch(59.9% 0.235 315.6);
Tailwind
colors: {
  custom: {
    50: '#ce7fe8',
    500: '#b340dc',
    950: '#000000',
  },
}
SCSS
$custom: #b340dc;
$custom-light: #ce7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#b340dc",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 284.231,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59904,
    "c": 0.23499,
    "h": 315.6
  },
  "luminance": 0.18418
}

Semantic roles & 50–950 ramp

primary
#B340DC
secondary
#ADDC9B
accent
#EC3C6A
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B340DC

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

Preview Lab → · Contrast checker → · Palette generator →

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