#B845AA#B845AA

#B845AA is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.2% C 0.188 H 332.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B845AA
RGBrgb(184, 69, 170)
HSLhsl(307, 45%, 50%)
HSVhsv(307, 63%, 72%)
CMYKcmyk(0%, 62.5%, 7.6%, 27.8%)
CIE-LABlab(48.70, 58.31, -31.49)
CIE-LCHlch(48.70, 66.27, 331.63°)
OKLaboklab(58.23% 0.1677 -0.0861)
OKLCHoklch(58.23% 0.188 332.8)
XYZxyz(29.1510, 17.3511, 39.8362)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845AA #45B853
analogous
#8C45B8 #B845AA #B84571
triadic
#B845AA #AAB845 #45AAB8
tetradic
#B845AA #B88C45 #45B853 #4571B8
square
#B845AA #B88C45 #45B853 #4571B8
split-complementary
#B845AA #71B845 #45B88C
monochromatic
#5F2458 #8B3481 #B845AA #CA71BF #DA9DD3

Accessibility & contrast

On white

4.70
#B845AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B845AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B845AA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845AA#FFFFFF#000000##FFFFFF
##B845AA1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4169AD
Deuteranopia (green-blind)
#677AA7
Tritanopia (blue-blind)
#C04E71
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b845aa;
/* rgb */ color: rgb(184, 69, 170);
/* oklch */ color: oklch(58.2% 0.188 332.8);
Tailwind
colors: {
  custom: {
    50: '#d080c3',
    500: '#b845aa',
    950: '#000000',
  },
}
SCSS
$custom: #b845aa;
$custom-light: #d080c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b845aa",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 307.304,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58226,
    "c": 0.18848,
    "h": 332.8
  },
  "luminance": 0.17349
}

Semantic roles & 50–950 ramp

primary
#B845AA
secondary
#92C799
accent
#D56353
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #B845AA

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

Preview Lab → · Contrast checker → · Palette generator →

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