#B640B0#B640B0

#B640B0 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.7% C 0.199 H 329.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B640B0
RGBrgb(182, 64, 176)
HSLhsl(303, 48%, 48%)
HSVhsv(303, 65%, 71%)
CMYKcmyk(0%, 64.8%, 3.3%, 28.6%)
CIE-LABlab(47.94, 60.85, -36.23)
CIE-LCHlch(47.94, 70.82, 329.23°)
OKLaboklab(57.71% 0.172 -0.0997)
OKLCHoklch(57.71% 0.199 329.9)
XYZxyz(28.9611, 16.7485, 42.7733)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B640B0 #40B646
analogous
#8140B6 #B640B0 #B64075
triadic
#B640B0 #B0B640 #40B0B6
tetradic
#B640B0 #B68140 #40B646 #4075B6
square
#B640B0 #B68140 #40B646 #4075B6
split-complementary
#B640B0 #75B640 #40B681
monochromatic
#5B2058 #893084 #B640B0 #CA69C5 #DA96D7

Accessibility & contrast

On white

4.83
#B640B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B640B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B640B0
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B640B0#FFFFFF#000000##FFFFFF
##B640B01.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B3
Deuteranopia (green-blind)
#6077AD
Tritanopia (blue-blind)
#BC4D72
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b640b0;
/* rgb */ color: rgb(182, 64, 176);
/* oklch */ color: oklch(57.7% 0.199 329.9);
Tailwind
colors: {
  custom: {
    50: '#cf7ec8',
    500: '#b640b0',
    950: '#000000',
  },
}
SCSS
$custom: #b640b0;
$custom-light: #cf7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#b640b0",
  "rgb": {
    "r": 182,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 303.051,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57709,
    "c": 0.19884,
    "h": 329.9
  },
  "luminance": 0.16746
}

Semantic roles & 50–950 ramp

primary
#B640B0
secondary
#8CC68F
accent
#D85750
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B640B0

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

Preview Lab → · Contrast checker → · Palette generator →

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