#B845C2#B845C2

#B845C2 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.208 H 324.5°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B845C2
RGBrgb(184, 69, 194)
HSLhsl(295, 51%, 52%)
HSVhsv(295, 64%, 76%)
CMYKcmyk(5.2%, 64.4%, 0%, 23.9%)
CIE-LABlab(49.91, 62.40, -43.59)
CIE-LCHlch(49.91, 76.12, 325.06°)
OKLaboklab(59.5% 0.1694 -0.1211)
OKLCHoklch(59.5% 0.208 324.5)
XYZxyz(31.6321, 18.3435, 52.9030)
Luminance0.1834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B845C2 #4FC245
analogous
#7A45C2 #B845C2 #C2458E
triadic
#B845C2 #C2B845 #45C2B8
tetradic
#B845C2 #C27A45 #4FC245 #458EC2
square
#B845C2 #C27A45 #4FC245 #458EC2
split-complementary
#B845C2 #8EC245 #45C27A
monochromatic
#64236A #903298 #B845C2 #CA73D1 #DBA1E0

Accessibility & contrast

On white

4.50
#B845C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#B845C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B845C2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B845C2#FFFFFF#000000##000000
##B845C21.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6EC6
Deuteranopia (green-blind)
#5B7CBF
Tritanopia (blue-blind)
#BC587E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b845c2;
/* rgb */ color: rgb(184, 69, 194);
/* oklch */ color: oklch(59.5% 0.208 324.5);
Tailwind
colors: {
  custom: {
    50: '#d181d5',
    500: '#b845c2',
    950: '#000000',
  },
}
SCSS
$custom: #b845c2;
$custom-light: #d181d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b845c2",
  "rgb": {
    "r": 184,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 295.2,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59497,
    "c": 0.20823,
    "h": 324.5
  },
  "luminance": 0.18342
}

Semantic roles & 50–950 ramp

primary
#B845C2
secondary
#9ACD96
accent
#DA4E59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B845C2

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

Preview Lab → · Contrast checker → · Palette generator →

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