#B45FA7#B45FA7

#B45FA7 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 60.9% C 0.142 H 333.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B45FA7
RGBrgb(180, 95, 167)
HSLhsl(309, 36%, 54%)
HSVhsv(309, 47%, 71%)
CMYKcmyk(0%, 47.2%, 7.2%, 29.4%)
CIE-LABlab(52.60, 44.34, -23.73)
CIE-LCHlch(52.60, 50.29, 331.85°)
OKLaboklab(60.94% 0.127 -0.0643)
OKLCHoklch(60.94% 0.142 333.1)
XYZxyz(29.8895, 20.6796, 38.9689)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B45FA7 #5FB46C
analogous
#975FB4 #B45FA7 #B45F7D
triadic
#B45FA7 #A7B45F #5FA7B4
tetradic
#B45FA7 #B4975F #5FB46C #5F7DB4
square
#B45FA7 #B4975F #5FB46C #5F7DB4
split-complementary
#B45FA7 #7DB45F #5FB497
monochromatic
#68315F #924486 #B45FA7 #C889BE #DBB2D5

Accessibility & contrast

On white

4.09
#B45FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#B45FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B45FA7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B45FA7#FFFFFF#000000##000000
##B45FA71.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E76A9
Deuteranopia (green-blind)
#7582A5
Tritanopia (blue-blind)
#BB647B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b45fa7;
/* rgb */ color: rgb(180, 95, 167);
/* oklch */ color: oklch(60.9% 0.142 333.1);
Tailwind
colors: {
  custom: {
    50: '#cc8fc1',
    500: '#b45fa7',
    950: '#000000',
  },
}
SCSS
$custom: #b45fa7;
$custom-light: #cc8fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b45fa7",
  "rgb": {
    "r": 180,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 309.176,
    "s": 36.17,
    "l": 53.922
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.14235,
    "h": 333.1
  },
  "luminance": 0.20678
}

Semantic roles & 50–950 ramp

primary
#B45FA7
secondary
#A5CAAB
accent
#CC6D5C
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#140D12
muted
#827D81

Preview Lab

Preview with #B45FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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