#B238B8#B238B8

#B238B8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.213 H 325.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B238B8
RGBrgb(178, 56, 184)
HSLhsl(297, 53%, 47%)
HSVhsv(297, 70%, 72%)
CMYKcmyk(3.3%, 69.6%, 0%, 27.8%)
CIE-LABlab(46.65, 64.31, -43.00)
CIE-LCHlch(46.65, 77.37, 326.23°)
OKLaboklab(56.79% 0.1766 -0.1194)
OKLCHoklch(56.79% 0.213 325.9)
XYZxyz(28.4254, 15.7559, 46.8821)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238B8 #3EB838
analogous
#7238B8 #B238B8 #B8387E
triadic
#B238B8 #B8B238 #38B8B2
tetradic
#B238B8 #B87238 #3EB838 #387EB8
square
#B238B8 #B87238 #3EB838 #387EB8
split-complementary
#B238B8 #7EB838 #38B872
monochromatic
#571B5A #852A89 #B238B8 #C95FCE #D98EDD

Accessibility & contrast

On white

5.06
#B238B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#B238B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238B8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238B8#FFFFFF#000000##FFFFFF
##B238B81.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B65BC
Deuteranopia (green-blind)
#5474B5
Tritanopia (blue-blind)
#B64C74
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b238b8;
/* rgb */ color: rgb(178, 56, 184);
/* oklch */ color: oklch(56.8% 0.213 325.9);
Tailwind
colors: {
  custom: {
    50: '#cd7ace',
    500: '#b238b8',
    950: '#000000',
  },
}
SCSS
$custom: #b238b8;
$custom-light: #cd7ace;
$custom-dark: #000000;
JSON
{
  "hex": "#b238b8",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 297.188,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56794,
    "c": 0.21316,
    "h": 325.9
  },
  "luminance": 0.15754
}

Semantic roles & 50–950 ramp

primary
#B238B8
secondary
#88C785
accent
#DD4B52
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B238B8

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

Preview Lab → · Contrast checker → · Palette generator →

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