#B238B9#B238B9

#B238B9 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.214 H 325.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B238B9
RGBrgb(178, 56, 185)
HSLhsl(297, 54%, 47%)
HSVhsv(297, 70%, 73%)
CMYKcmyk(3.8%, 69.7%, 0%, 27.5%)
CIE-LABlab(46.71, 64.49, -43.50)
CIE-LCHlch(46.71, 77.79, 326.00°)
OKLaboklab(56.85% 0.1766 -0.1208)
OKLCHoklch(56.85% 0.214 325.6)
XYZxyz(28.5306, 15.7980, 47.4361)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238B9 #3FB938
analogous
#7138B9 #B238B9 #B93880
triadic
#B238B9 #B9B238 #38B9B2
tetradic
#B238B9 #B97138 #3FB938 #3880B9
square
#B238B9 #B97138 #3FB938 #3880B9
split-complementary
#B238B9 #80B938 #38B971
monochromatic
#581C5B #852A8A #B238B9 #C95FCF #D98EDD

Accessibility & contrast

On white

5.05
#B238B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B238B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238B9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238B9#FFFFFF#000000##FFFFFF
##B238B91.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A65BD
Deuteranopia (green-blind)
#5374B6
Tritanopia (blue-blind)
#B64D75
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b238b9;
/* rgb */ color: rgb(178, 56, 185);
/* oklch */ color: oklch(56.9% 0.214 325.6);
Tailwind
colors: {
  custom: {
    50: '#cd7ace',
    500: '#b238b9',
    950: '#000000',
  },
}
SCSS
$custom: #b238b9;
$custom-light: #cd7ace;
$custom-dark: #000000;
JSON
{
  "hex": "#b238b9",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 296.744,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56852,
    "c": 0.21397,
    "h": 325.6
  },
  "luminance": 0.15796
}

Semantic roles & 50–950 ramp

primary
#B238B9
secondary
#89C885
accent
#DD4B53
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B238B9

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

Preview Lab → · Contrast checker → · Palette generator →

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