#B340DB#B340DB

#B340DB is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.234 H 315.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B340DB
RGBrgb(179, 64, 219)
HSLhsl(285, 68%, 55%)
HSVhsv(285, 71%, 86%)
CMYKcmyk(18.3%, 70.8%, 0%, 14.1%)
CIE-LABlab(49.94, 67.95, -57.94)
CIE-LCHlch(49.94, 89.29, 319.55°)
OKLaboklab(59.84% 0.168 -0.1631)
OKLCHoklch(59.84% 0.234 315.8)
XYZxyz(33.2080, 18.3662, 68.7999)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340DB #68DB40
analogous
#6540DB #B340DB #DB40B6
triadic
#B340DB #DBB340 #40DBB3
tetradic
#B340DB #DB6540 #68DB40 #40B6DB
square
#B340DB #DB6540 #68DB40 #40B6DB
split-complementary
#B340DB #B6DB40 #40DB65
monochromatic
#6B1987 #9423BB #B340DB #C773E5 #DCA7EE

Accessibility & contrast

On white

4.49
#B340DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#B340DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B340DB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340DB#FFFFFF#000000##000000
##B340DB1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b340db;
/* rgb */ color: rgb(179, 64, 219);
/* oklch */ color: oklch(59.8% 0.234 315.8);
Tailwind
colors: {
  custom: {
    50: '#ce7fe7',
    500: '#b340db',
    950: '#000000',
  },
}
SCSS
$custom: #b340db;
$custom-light: #ce7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#b340db",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 284.516,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59839,
    "c": 0.23411,
    "h": 315.8
  },
  "luminance": 0.18365
}

Semantic roles & 50–950 ramp

primary
#B340DB
secondary
#ACDC9B
accent
#EB3D6A
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B340DB

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

Preview Lab → · Contrast checker → · Palette generator →

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