#B640C7#B640C7

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

Color values

HEX#B640C7
RGBrgb(182, 64, 199)
HSLhsl(292, 55%, 52%)
HSVhsv(292, 68%, 78%)
CMYKcmyk(8.5%, 67.8%, 0%, 22%)
CIE-LABlab(49.18, 64.84, -47.67)
CIE-LCHlch(49.18, 80.47, 323.68°)
OKLaboklab(59% 0.1726 -0.133)
OKLCHoklch(59% 0.218 322.4)
XYZxyz(31.4325, 17.7371, 55.7897)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640C7 #51C740
analogous
#7340C7 #B640C7 #C74095
triadic
#B640C7 #C7B640 #40C7B6
tetradic
#B640C7 #C77340 #51C740 #4095C7
square
#B640C7 #C77340 #51C740 #4095C7
split-complementary
#B640C7 #95C740 #40C773
monochromatic
#63206D #8E2E9C #B640C7 #C86FD5 #DA9FE3

Accessibility & contrast

On white

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

On black

4.55
#B640C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B640C7#FFFFFF#000000##FFFFFF
##B640C71.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166CCB
Deuteranopia (green-blind)
#5379C4
Tritanopia (blue-blind)
#B8577F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b640c7;
/* rgb */ color: rgb(182, 64, 199);
/* oklch */ color: oklch(59.0% 0.218 322.4);
Tailwind
colors: {
  custom: {
    50: '#cf7ed8',
    500: '#b640c7',
    950: '#000000',
  },
}
SCSS
$custom: #b640c7;
$custom-light: #cf7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#b640c7",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 292.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58998,
    "c": 0.2179,
    "h": 322.4
  },
  "luminance": 0.17735
}

Semantic roles & 50–950 ramp

primary
#B640C7
secondary
#9BCF94
accent
#DE4A5C
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B640C7

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

Preview Lab → · Contrast checker → · Palette generator →

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