#B238AC#B238AC

#B238AC is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.204 H 330.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B238AC
RGBrgb(178, 56, 172)
HSLhsl(303, 52%, 46%)
HSVhsv(303, 69%, 70%)
CMYKcmyk(0%, 68.5%, 3.4%, 30.2%)
CIE-LABlab(46.01, 62.30, -36.97)
CIE-LCHlch(46.01, 72.45, 329.32°)
OKLaboklab(56.12% 0.1763 -0.1019)
OKLCHoklch(56.12% 0.204 330)
XYZxyz(27.2205, 15.2739, 40.5362)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238AC #38B23E
analogous
#7B38B2 #B238AC #B2386F
triadic
#B238AC #ACB238 #38ACB2
tetradic
#B238AC #B27B38 #38B23E #386FB2
square
#B238AC #B27B38 #38B23E #386FB2
split-complementary
#B238AC #6FB238 #38B27B
monochromatic
#551B52 #83297F #B238AC #CC5CC6 #DA8AD6

Accessibility & contrast

On white

5.18
#B238AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B238AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238AC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238AC#FFFFFF#000000##FFFFFF
##B238AC1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AF
Deuteranopia (green-blind)
#5B73A9
Tritanopia (blue-blind)
#B8476E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b238ac;
/* rgb */ color: rgb(178, 56, 172);
/* oklch */ color: oklch(56.1% 0.204 330.0);
Tailwind
colors: {
  custom: {
    50: '#cc79c5',
    500: '#b238ac',
    950: '#000000',
  },
}
SCSS
$custom: #b238ac;
$custom-light: #cc79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b238ac",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 302.951,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56121,
    "c": 0.20362,
    "h": 330
  },
  "luminance": 0.15272
}

Semantic roles & 50–950 ramp

primary
#B238AC
secondary
#81C585
accent
#DC534C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B238AC

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

Preview Lab → · Contrast checker → · Palette generator →

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