#B238AD#B238AD

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

Color values

HEX#B238AD
RGBrgb(178, 56, 173)
HSLhsl(302, 52%, 46%)
HSVhsv(302, 69%, 70%)
CMYKcmyk(0%, 68.5%, 2.8%, 30.2%)
CIE-LABlab(46.06, 62.47, -37.48)
CIE-LCHlch(46.06, 72.85, 329.04°)
OKLaboklab(56.18% 0.1763 -0.1034)
OKLCHoklch(56.18% 0.204 329.6)
XYZxyz(27.3169, 15.3125, 41.0439)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238AD #38B23D
analogous
#7A38B2 #B238AD #B23870
triadic
#B238AD #ADB238 #38ADB2
tetradic
#B238AD #B27A38 #38B23D #3870B2
square
#B238AD #B27A38 #38B23D #3870B2
split-complementary
#B238AD #70B238 #38B27A
monochromatic
#551B53 #832980 #B238AD #CC5CC7 #DA8AD7

Accessibility & contrast

On white

5.17
#B238AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B238AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238AD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238AD#FFFFFF#000000##FFFFFF
##B238AD1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b238ad;
/* rgb */ color: rgb(178, 56, 173);
/* oklch */ color: oklch(56.2% 0.204 329.6);
Tailwind
colors: {
  custom: {
    50: '#cc79c6',
    500: '#b238ad',
    950: '#000000',
  },
}
SCSS
$custom: #b238ad;
$custom-light: #cc79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#b238ad",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 302.459,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56175,
    "c": 0.20439,
    "h": 329.6
  },
  "luminance": 0.1531
}

Semantic roles & 50–950 ramp

primary
#B238AD
secondary
#81C584
accent
#DC524C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B238AD

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

Preview Lab → · Contrast checker → · Palette generator →

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