#B238AB#B238AB

#B238AB is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.203 H 330.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B238AB
RGBrgb(178, 56, 171)
HSLhsl(303, 52%, 46%)
HSVhsv(303, 69%, 70%)
CMYKcmyk(0%, 68.5%, 3.9%, 30.2%)
CIE-LABlab(45.96, 62.14, -36.46)
CIE-LCHlch(45.96, 72.05, 329.60°)
OKLaboklab(56.07% 0.1762 -0.1004)
OKLCHoklch(56.07% 0.203 330.3)
XYZxyz(27.1248, 15.2356, 40.0323)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238AB #38B23F
analogous
#7C38B2 #B238AB #B2386E
triadic
#B238AB #ABB238 #38ABB2
tetradic
#B238AB #B27C38 #38B23F #386EB2
square
#B238AB #B27C38 #38B23F #386EB2
split-complementary
#B238AB #6EB238 #38B27C
monochromatic
#551B52 #83297E #B238AB #CC5CC5 #DA8AD6

Accessibility & contrast

On white

5.19
#B238AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B238AB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238AB#FFFFFF#000000##FFFFFF
##B238AB1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D62AE
Deuteranopia (green-blind)
#5B73A8
Tritanopia (blue-blind)
#B9466D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b238ab;
/* rgb */ color: rgb(178, 56, 171);
/* oklch */ color: oklch(56.1% 0.203 330.3);
Tailwind
colors: {
  custom: {
    50: '#cc79c4',
    500: '#b238ab',
    950: '#000000',
  },
}
SCSS
$custom: #b238ab;
$custom-light: #cc79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b238ab",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 303.443,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56066,
    "c": 0.20283,
    "h": 330.3
  },
  "luminance": 0.15234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B238AB

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

Preview Lab → · Contrast checker → · Palette generator →

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