#B640C5#B640C5

#B640C5 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.216 H 323.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B640C5
RGBrgb(182, 64, 197)
HSLhsl(293, 53%, 51%)
HSVhsv(293, 68%, 77%)
CMYKcmyk(7.6%, 67.5%, 0%, 22.7%)
CIE-LABlab(49.06, 64.48, -46.69)
CIE-LCHlch(49.06, 79.61, 324.09°)
OKLaboklab(58.88% 0.1727 -0.1301)
OKLCHoklch(58.88% 0.216 323)
XYZxyz(31.2019, 17.6449, 54.5748)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640C5 #4FC540
analogous
#7340C5 #B640C5 #C54091
triadic
#B640C5 #C5B640 #40C5B6
tetradic
#B640C5 #C57340 #4FC540 #4091C5
square
#B640C5 #C57340 #4FC540 #4091C5
split-complementary
#B640C5 #91C540 #40C573
monochromatic
#62206A #8D2F99 #B640C5 #C86FD3 #DA9EE2

Accessibility & contrast

On white

4.64
#B640C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B640C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B640C5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B640C5#FFFFFF#000000##FFFFFF
##B640C51.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6CC9
Deuteranopia (green-blind)
#5479C2
Tritanopia (blue-blind)
#B9567E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b640c5;
/* rgb */ color: rgb(182, 64, 197);
/* oklch */ color: oklch(58.9% 0.216 323.0);
Tailwind
colors: {
  custom: {
    50: '#cf7ed7',
    500: '#b640c5',
    950: '#000000',
  },
}
SCSS
$custom: #b640c5;
$custom-light: #cf7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#b640c5",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 293.233,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5888,
    "c": 0.2162,
    "h": 323
  },
  "luminance": 0.17643
}

Semantic roles & 50–950 ramp

primary
#B640C5
secondary
#9ACE93
accent
#DD4B5B
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B640C5

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

Preview Lab → · Contrast checker → · Palette generator →

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