#B640D6#B640D6

#B640D6 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.231 H 318.2°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B640D6
RGBrgb(182, 64, 214)
HSLhsl(287, 65%, 55%)
HSVhsv(287, 70%, 84%)
CMYKcmyk(15%, 70.1%, 0%, 16.1%)
CIE-LABlab(50.06, 67.61, -54.87)
CIE-LCHlch(50.06, 87.07, 320.94°)
OKLaboklab(59.92% 0.172 -0.154)
OKLCHoklch(59.92% 0.231 318.2)
XYZxyz(33.2607, 18.4684, 65.4180)
Luminance0.1847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640D6 #60D640
analogous
#6B40D6 #B640D6 #D640AB
triadic
#B640D6 #D6B640 #40D6B6
tetradic
#B640D6 #D66B40 #60D640 #40ABD6
square
#B640D6 #D66B40 #60D640 #40ABD6
split-complementary
#B640D6 #ABD640 #40D66B
monochromatic
#6B1B80 #9526B2 #B640D6 #C972E1 #DDA5EC

Accessibility & contrast

On white

4.47
#B640D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#B640D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B640D6
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B640D6#FFFFFF#000000##000000
##B640D61.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#477BD3
Tritanopia (blue-blind)
#B55D87
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b640d6;
/* rgb */ color: rgb(182, 64, 214);
/* oklch */ color: oklch(59.9% 0.231 318.2);
Tailwind
colors: {
  custom: {
    50: '#d07fe3',
    500: '#b640d6',
    950: '#000000',
  },
}
SCSS
$custom: #b640d6;
$custom-light: #d07fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#b640d6",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 287.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59915,
    "c": 0.23083,
    "h": 318.2
  },
  "luminance": 0.18467
}

Semantic roles & 50–950 ramp

primary
#B640D6
secondary
#A7D999
accent
#E84064
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B15
muted
#837C84

Preview Lab

Preview with #B640D6

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

Preview Lab → · Contrast checker → · Palette generator →

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