#B236A8#B236A8

#B236A8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.203 H 331.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B236A8
RGBrgb(178, 54, 168)
HSLhsl(305, 53%, 45%)
HSVhsv(305, 70%, 70%)
CMYKcmyk(0%, 69.7%, 5.6%, 30.2%)
CIE-LABlab(45.54, 62.39, -35.33)
CIE-LCHlch(45.54, 71.70, 330.47°)
OKLaboklab(55.72% 0.1782 -0.0972)
OKLCHoklch(55.72% 0.203 331.4)
XYZxyz(26.7471, 14.9326, 38.5117)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B236A8 #36B240
analogous
#7E36B2 #B236A8 #B2366A
triadic
#B236A8 #A8B236 #36A8B2
tetradic
#B236A8 #B27E36 #36B240 #366AB2
square
#B236A8 #B27E36 #36B240 #366AB2
split-complementary
#B236A8 #6AB236 #36B27E
monochromatic
#541A4F #83287C #B236A8 #CD59C3 #DB88D4

Accessibility & contrast

On white

5.27
#B236A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B236A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B236A8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B236A8#FFFFFF#000000##FFFFFF
##B236A81.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#B9446B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b236a8;
/* rgb */ color: rgb(178, 54, 168);
/* oklch */ color: oklch(55.7% 0.203 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd78c2',
    500: '#b236a8',
    950: '#000000',
  },
}
SCSS
$custom: #b236a8;
$custom-light: #cd78c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b236a8",
  "rgb": {
    "r": 178,
    "g": 54,
    "b": 168
  },
  "hsl": {
    "h": 304.839,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55718,
    "c": 0.20294,
    "h": 331.4
  },
  "luminance": 0.1493
}

Semantic roles & 50–950 ramp

primary
#B236A8
secondary
#7FC585
accent
#DD574B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B236A8

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

Preview Lab → · Contrast checker → · Palette generator →

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