#B845DB#B845DB

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

Color values

HEX#B845DB
RGBrgb(184, 69, 219)
HSLhsl(286, 68%, 56%)
HSVhsv(286, 68%, 86%)
CMYKcmyk(16%, 68.5%, 0%, 14.1%)
CIE-LABlab(51.34, 67.03, -55.65)
CIE-LCHlch(51.34, 87.12, 320.30°)
OKLaboklab(60.99% 0.1689 -0.1562)
OKLCHoklch(60.99% 0.23 317.2)
XYZxyz(34.6796, 19.5625, 68.9533)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845DB #68DB45
analogous
#6D45DB #B845DB #DB45B3
triadic
#B845DB #DBB845 #45DBB8
tetradic
#B845DB #DB6D45 #68DB45 #45B3DB
square
#B845DB #DB6D45 #68DB45 #45B3DB
split-complementary
#B845DB #B3DB45 #45DB6D
monochromatic
#711B8B #9A25BE #B845DB #CC78E5 #DFACEF

Accessibility & contrast

On white

4.28
#B845DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#B845DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B845DB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845DB#FFFFFF#000000##000000
##B845DB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#497ED8
Tritanopia (blue-blind)
#B6628B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b845db;
/* rgb */ color: rgb(184, 69, 219);
/* oklch */ color: oklch(61.0% 0.230 317.2);
Tailwind
colors: {
  custom: {
    50: '#d182e7',
    500: '#b845db',
    950: '#000000',
  },
}
SCSS
$custom: #b845db;
$custom-light: #d182e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b845db",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 286,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60985,
    "c": 0.23011,
    "h": 317.2
  },
  "luminance": 0.19561
}

Semantic roles & 50–950 ramp

primary
#B845DB
secondary
#ADDD9F
accent
#EA3D66
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B845DB

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

Preview Lab → · Contrast checker → · Palette generator →

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