#B645B2#B645B2

#B645B2 is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.4% C 0.194 H 329.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B645B2
RGBrgb(182, 69, 178)
HSLhsl(302, 45%, 49%)
HSVhsv(302, 62%, 71%)
CMYKcmyk(0%, 62.1%, 2.2%, 28.6%)
CIE-LABlab(48.78, 59.13, -36.08)
CIE-LCHlch(48.78, 69.27, 328.61°)
OKLaboklab(58.35% 0.1663 -0.0994)
OKLCHoklch(58.35% 0.194 329.1)
XYZxyz(29.4551, 17.4177, 43.9214)
Luminance0.1742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B645B2 #45B649
analogous
#8245B6 #B645B2 #B6457A
triadic
#B645B2 #B2B645 #45B2B6
tetradic
#B645B2 #B68245 #45B649 #457AB6
square
#B645B2 #B68245 #45B649 #457AB6
split-complementary
#B645B2 #7AB645 #45B682
monochromatic
#5D235B #8A3487 #B645B2 #C970C5 #D99CD7

Accessibility & contrast

On white

4.68
#B645B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B645B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B645B2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B645B2#FFFFFF#000000##FFFFFF
##B645B21.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#6279AF
Tritanopia (blue-blind)
#BC5275
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b645b2;
/* rgb */ color: rgb(182, 69, 178);
/* oklch */ color: oklch(58.4% 0.194 329.1);
Tailwind
colors: {
  custom: {
    50: '#cf80c9',
    500: '#b645b2',
    950: '#000000',
  },
}
SCSS
$custom: #b645b2;
$custom-light: #cf80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b645b2",
  "rgb": {
    "r": 182,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 302.124,
    "s": 45.02,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58351,
    "c": 0.19372,
    "h": 329.1
  },
  "luminance": 0.17416
}

Semantic roles & 50–950 ramp

primary
#B645B2
secondary
#91C693
accent
#D55853
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B645B2

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

Preview Lab → · Contrast checker → · Palette generator →

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