#B845DC#B845DC

#B845DC is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.0% C 0.231 H 317.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B845DC
RGBrgb(184, 69, 220)
HSLhsl(286, 68%, 57%)
HSVhsv(286, 69%, 86%)
CMYKcmyk(16.4%, 68.6%, 0%, 13.7%)
CIE-LABlab(51.40, 67.22, -56.12)
CIE-LCHlch(51.40, 87.57, 320.14°)
OKLaboklab(61.05% 0.1689 -0.1576)
OKLCHoklch(61.05% 0.231 317)
XYZxyz(34.8116, 19.6153, 69.6487)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845DC #69DC45
analogous
#6D45DC #B845DC #DC45B5
triadic
#B845DC #DCB845 #45DCB8
tetradic
#B845DC #DC6D45 #69DC45 #45B5DC
square
#B845DC #DC6D45 #69DC45 #45B5DC
split-complementary
#B845DC #B5DC45 #45DC6D
monochromatic
#711A8C #9B24C0 #B845DC #CC79E6 #DFACEF

Accessibility & contrast

On white

4.27
#B845DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#B845DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B845DC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845DC#FFFFFF#000000##000000
##B845DC1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#487ED9
Tritanopia (blue-blind)
#B6628C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b845dc;
/* rgb */ color: rgb(184, 69, 220);
/* oklch */ color: oklch(61.0% 0.231 317.0);
Tailwind
colors: {
  custom: {
    50: '#d182e8',
    500: '#b845dc',
    950: '#000000',
  },
}
SCSS
$custom: #b845dc;
$custom-light: #d182e8;
$custom-dark: #000000;
JSON
{
  "hex": "#b845dc",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 285.695,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61047,
    "c": 0.23101,
    "h": 317
  },
  "luminance": 0.19614
}

Semantic roles & 50–950 ramp

primary
#B845DC
secondary
#AEDDA0
accent
#EB3D66
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B845DC

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

Preview Lab → · Contrast checker → · Palette generator →

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