#B340D3#B340D3

#B340D3 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.227 H 318.0°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B340D3
RGBrgb(179, 64, 211)
HSLhsl(287, 63%, 54%)
HSVhsv(287, 70%, 83%)
CMYKcmyk(15.2%, 69.7%, 0%, 17.3%)
CIE-LABlab(49.44, 66.41, -54.17)
CIE-LCHlch(49.44, 85.70, 320.80°)
OKLaboklab(59.33% 0.1686 -0.152)
OKLCHoklch(59.33% 0.227 318)
XYZxyz(32.1800, 17.9551, 63.3860)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340D3 #60D340
analogous
#6A40D3 #B340D3 #D340AA
triadic
#B340D3 #D3B340 #40D3B3
tetradic
#B340D3 #D36A40 #60D340 #40AAD3
square
#B340D3 #D36A40 #60D340 #40AAD3
split-complementary
#B340D3 #AAD340 #40D36A
monochromatic
#671D7C #9128AE #B340D3 #C772DE #DBA3EA

Accessibility & contrast

On white

4.57
#B340D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#B340D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B340D3
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340D3#FFFFFF#000000##000000
##B340D31.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED7
Deuteranopia (green-blind)
#4679D0
Tritanopia (blue-blind)
#B25D85
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b340d3;
/* rgb */ color: rgb(179, 64, 211);
/* oklch */ color: oklch(59.3% 0.227 318.0);
Tailwind
colors: {
  custom: {
    50: '#ce7ee1',
    500: '#b340d3',
    950: '#000000',
  },
}
SCSS
$custom: #b340d3;
$custom-light: #ce7ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#b340d3",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 286.939,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59327,
    "c": 0.22704,
    "h": 318
  },
  "luminance": 0.17954
}

Semantic roles & 50–950 ramp

primary
#B340D3
secondary
#A6D798
accent
#E64266
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340D3

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

Preview Lab → · Contrast checker → · Palette generator →

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