#B862D4#B862D4

#B862D4 is a light, vivid purple. Relative luminance 0.237; OKLCH L 64.1% C 0.183 H 317.2°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B862D4
RGBrgb(184, 98, 212)
HSLhsl(285, 57%, 61%)
HSVhsv(285, 54%, 83%)
CMYKcmyk(13.2%, 53.8%, 0%, 16.9%)
CIE-LABlab(55.77, 52.48, -44.62)
CIE-LCHlch(55.77, 68.89, 319.63°)
OKLaboklab(64.07% 0.1344 -0.1242)
OKLCHoklch(64.07% 0.183 317.2)
XYZxyz(36.0168, 23.6804, 64.9481)
Luminance0.2368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B862D4 #7ED462
analogous
#7F62D4 #B862D4 #D462B7
triadic
#B862D4 #D4B862 #62D4B8
tetradic
#B862D4 #D47F62 #7ED462 #62B7D4
square
#B862D4 #D47F62 #7ED462 #62B7D4
split-complementary
#B862D4 #B7D462 #62D47F
monochromatic
#792893 #A035C3 #B862D4 #CE92E1 #E3C2EE

Accessibility & contrast

On white

3.66
#B862D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#B862D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B862D4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B862D4#FFFFFF#000000##000000
##B862D41.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4980D8
Deuteranopia (green-blind)
#6588D1
Tritanopia (blue-blind)
#B77492
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b862d4;
/* rgb */ color: rgb(184, 98, 212);
/* oklch */ color: oklch(64.1% 0.183 317.2);
Tailwind
colors: {
  custom: {
    50: '#d092e2',
    500: '#b862d4',
    950: '#000000',
  },
}
SCSS
$custom: #b862d4;
$custom-light: #d092e2;
$custom-dark: #000000;
JSON
{
  "hex": "#b862d4",
  "rgb": {
    "r": 184,
    "g": 98,
    "b": 212
  },
  "hsl": {
    "h": 285.263,
    "s": 57,
    "l": 60.784
  },
  "oklch": {
    "l": 0.64073,
    "c": 0.183,
    "h": 317.2
  },
  "luminance": 0.23679
}

Semantic roles & 50–950 ramp

primary
#B862D4
secondary
#BEDEB3
accent
#C52149
background
#FDF9FD
surface
#FAF1FB
border
#D3CBD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #B862D4

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

Preview Lab → · Contrast checker → · Palette generator →

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