#B340CE#B340CE

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

Color values

HEX#B340CE
RGBrgb(179, 64, 206)
HSLhsl(289, 59%, 53%)
HSVhsv(289, 69%, 81%)
CMYKcmyk(13.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(49.14, 65.47, -51.78)
CIE-LCHlch(49.14, 83.47, 321.66°)
OKLaboklab(59.01% 0.1689 -0.1451)
OKLCHoklch(59.01% 0.223 319.3)
XYZxyz(31.5629, 17.7082, 60.1360)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340CE #5BCE40
analogous
#6C40CE #B340CE #CE40A2
triadic
#B340CE #CEB340 #40CEB3
tetradic
#B340CE #CE6C40 #5BCE40 #40A2CE
square
#B340CE #CE6C40 #5BCE40 #40A2CE
split-complementary
#B340CE #A2CE40 #40CE6C
monochromatic
#651E75 #8F2BA6 #B340CE #C671DA #DAA1E7

Accessibility & contrast

On white

4.62
#B340CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#B340CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B340CE
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340CE#FFFFFF#000000##FFFFFF
##B340CE1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD2
Deuteranopia (green-blind)
#4A79CB
Tritanopia (blue-blind)
#B35B83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b340ce;
/* rgb */ color: rgb(179, 64, 206);
/* oklch */ color: oklch(59.0% 0.223 319.3);
Tailwind
colors: {
  custom: {
    50: '#ce7ede',
    500: '#b340ce',
    950: '#000000',
  },
}
SCSS
$custom: #b340ce;
$custom-light: #ce7ede;
$custom-dark: #000000;
JSON
{
  "hex": "#b340ce",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 288.592,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59015,
    "c": 0.22265,
    "h": 319.3
  },
  "luminance": 0.17707
}

Semantic roles & 50–950 ramp

primary
#B340CE
secondary
#A2D496
accent
#E24563
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B340CE

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

Preview Lab → · Contrast checker → · Palette generator →

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