#B845D9#B845D9

#B845D9 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.9% C 0.228 H 317.8°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B845D9
RGBrgb(184, 69, 217)
HSLhsl(287, 66%, 56%)
HSVhsv(287, 68%, 85%)
CMYKcmyk(15.2%, 68.2%, 0%, 14.9%)
CIE-LABlab(51.22, 66.65, -54.70)
CIE-LCHlch(51.22, 86.22, 320.62°)
OKLaboklab(60.86% 0.1691 -0.1535)
OKLCHoklch(60.86% 0.228 317.8)
XYZxyz(34.4179, 19.4578, 67.5750)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845D9 #66D945
analogous
#6E45D9 #B845D9 #D945B0
triadic
#B845D9 #D9B845 #45D9B8
tetradic
#B845D9 #D96E45 #66D945 #45B0D9
square
#B845D9 #D96E45 #66D945 #45B0D9
split-complementary
#B845D9 #B0D945 #45D96E
monochromatic
#701C88 #9A26BB #B845D9 #CB78E3 #DFABEE

Accessibility & contrast

On white

4.29
#B845D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#B845D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B845D9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845D9#FFFFFF#000000##000000
##B845D91.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#4A7ED6
Tritanopia (blue-blind)
#B7618A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b845d9;
/* rgb */ color: rgb(184, 69, 217);
/* oklch */ color: oklch(60.9% 0.228 317.8);
Tailwind
colors: {
  custom: {
    50: '#d182e5',
    500: '#b845d9',
    950: '#000000',
  },
}
SCSS
$custom: #b845d9;
$custom-light: #d182e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b845d9",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 286.622,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6086,
    "c": 0.22833,
    "h": 317.8
  },
  "luminance": 0.19456
}

Semantic roles & 50–950 ramp

primary
#B845D9
secondary
#ACDB9E
accent
#E93F65
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B845D9

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

Preview Lab → · Contrast checker → · Palette generator →

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