#B238BC#B238BC

#B238BC is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.0% C 0.216 H 324.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B238BC
RGBrgb(178, 56, 188)
HSLhsl(295, 54%, 48%)
HSVhsv(295, 70%, 74%)
CMYKcmyk(5.3%, 70.2%, 0%, 26.3%)
CIE-LABlab(46.88, 65.01, -44.98)
CIE-LCHlch(46.88, 79.05, 325.32°)
OKLaboklab(57.03% 0.1765 -0.1252)
OKLCHoklch(57.03% 0.216 324.7)
XYZxyz(28.8506, 15.9260, 49.1216)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238BC #42BC38
analogous
#7038BC #B238BC #BC3884
triadic
#B238BC #BCB238 #38BCB2
tetradic
#B238BC #BC7038 #42BC38 #3884BC
square
#B238BC #BC7038 #42BC38 #3884BC
split-complementary
#B238BC #84BC38 #38BC70
monochromatic
#591C5E #852A8D #B238BC #C861D0 #D890DE

Accessibility & contrast

On white

5.02
#B238BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#B238BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238BC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238BC#FFFFFF#000000##FFFFFF
##B238BC1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1366C0
Deuteranopia (green-blind)
#5174B9
Tritanopia (blue-blind)
#B64E76
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b238bc;
/* rgb */ color: rgb(178, 56, 188);
/* oklch */ color: oklch(57.0% 0.216 324.7);
Tailwind
colors: {
  custom: {
    50: '#cd7ad1',
    500: '#b238bc',
    950: '#000000',
  },
}
SCSS
$custom: #b238bc;
$custom-light: #cd7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b238bc",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 295.455,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57027,
    "c": 0.21641,
    "h": 324.7
  },
  "luminance": 0.15924
}

Semantic roles & 50–950 ramp

primary
#B238BC
secondary
#8CC987
accent
#DD4A55
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B238BC

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

Preview Lab → · Contrast checker → · Palette generator →

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