#B340D9#B340D9

#B340D9 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.7% C 0.232 H 316.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B340D9
RGBrgb(179, 64, 217)
HSLhsl(285, 67%, 55%)
HSVhsv(285, 71%, 85%)
CMYKcmyk(17.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(49.81, 67.56, -57.00)
CIE-LCHlch(49.81, 88.39, 319.85°)
OKLaboklab(59.71% 0.1681 -0.1603)
OKLCHoklch(59.71% 0.232 316.4)
XYZxyz(32.9463, 18.2616, 67.4216)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340D9 #66D940
analogous
#6640D9 #B340D9 #D940B2
triadic
#B340D9 #D9B340 #40D9B3
tetradic
#B340D9 #D96640 #66D940 #40B2D9
square
#B340D9 #D96640 #66D940 #40B2D9
split-complementary
#B340D9 #B2D940 #40D966
monochromatic
#6A1A84 #9324B7 #B340D9 #C773E3 #DCA6ED

Accessibility & contrast

On white

4.51
#B340D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#B340D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B340D9
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340D9#FFFFFF#000000##000000
##B340D91.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#407AD6
Tritanopia (blue-blind)
#B15F89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b340d9;
/* rgb */ color: rgb(179, 64, 217);
/* oklch */ color: oklch(59.7% 0.232 316.4);
Tailwind
colors: {
  custom: {
    50: '#ce7fe5',
    500: '#b340d9',
    950: '#000000',
  },
}
SCSS
$custom: #b340d9;
$custom-light: #ce7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#b340d9",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 285.098,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59709,
    "c": 0.23233,
    "h": 316.4
  },
  "luminance": 0.1826
}

Semantic roles & 50–950 ramp

primary
#B340D9
secondary
#AADA9A
accent
#EA3E69
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B340D9

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

Preview Lab → · Contrast checker → · Palette generator →

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