#B256B2#B256B2

#B256B2 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 59.9% C 0.166 H 327.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B256B2
RGBrgb(178, 86, 178)
HSLhsl(300, 37%, 52%)
HSVhsv(300, 52%, 70%)
CMYKcmyk(0%, 51.7%, 0%, 30.2%)
CIE-LABlab(51.08, 50.25, -32.52)
CIE-LCHlch(51.08, 59.86, 327.09°)
OKLaboklab(59.92% 0.1397 -0.0893)
OKLCHoklch(59.92% 0.166 327.4)
XYZxyz(29.7233, 19.3366, 44.2776)
Luminance0.1933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256B2 #56B256
analogous
#8456B2 #B256B2 #B25684
triadic
#B256B2 #B2B256 #56B2B2
tetradic
#B256B2 #B28456 #56B256 #5684B2
square
#B256B2 #B28456 #56B256 #5684B2
split-complementary
#B256B2 #84B256 #56B284
monochromatic
#612C61 #8B3F8B #B256B2 #C580C5 #D8AAD8

Accessibility & contrast

On white

4.31
#B256B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#B256B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256B2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256B2#FFFFFF#000000##000000
##B256B21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D72B5
Deuteranopia (green-blind)
#697EAF
Tritanopia (blue-blind)
#B7607C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b256b2;
/* rgb */ color: rgb(178, 86, 178);
/* oklch */ color: oklch(59.9% 0.166 327.4);
Tailwind
colors: {
  custom: {
    50: '#cb8ac9',
    500: '#b256b2',
    950: '#000000',
  },
}
SCSS
$custom: #b256b2;
$custom-light: #cb8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#b256b2",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59915,
    "c": 0.16581,
    "h": 327.4
  },
  "luminance": 0.19335
}

Semantic roles & 50–950 ramp

primary
#B256B2
secondary
#9EC69E
accent
#CD5A5A
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B256B2

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

Preview Lab → · Contrast checker → · Palette generator →

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