#B038BD#B038BD

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

Color values

HEX#B038BD
RGBrgb(176, 56, 189)
HSLhsl(294, 54%, 48%)
HSVhsv(294, 70%, 74%)
CMYKcmyk(6.9%, 70.4%, 0%, 25.9%)
CIE-LABlab(46.62, 64.74, -45.99)
CIE-LCHlch(46.62, 79.41, 324.61°)
OKLaboklab(56.8% 0.1743 -0.1281)
OKLCHoklch(56.8% 0.216 323.7)
XYZxyz(28.5032, 15.7343, 49.6699)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B038BD #45BD38
analogous
#6D38BD #B038BD #BD3888
triadic
#B038BD #BDB038 #38BDB0
tetradic
#B038BD #BD6D38 #45BD38 #3888BD
square
#B038BD #BD6D38 #45BD38 #3888BD
split-complementary
#B038BD #88BD38 #38BD6D
monochromatic
#581C5F #842A8E #B038BD #C662D0 #D791DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B038BD#FFFFFF#000000##FFFFFF
##B038BD1.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)
#0B65C1
Deuteranopia (green-blind)
#4F73BA
Tritanopia (blue-blind)
#B34F77
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b038bd;
/* rgb */ color: rgb(176, 56, 189);
/* oklch */ color: oklch(56.8% 0.216 323.7);
Tailwind
colors: {
  custom: {
    50: '#cb7ad1',
    500: '#b038bd',
    950: '#000000',
  },
}
SCSS
$custom: #b038bd;
$custom-light: #cb7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b038bd",
  "rgb": {
    "r": 176,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 294.135,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56803,
    "c": 0.21632,
    "h": 323.7
  },
  "luminance": 0.15733
}

Semantic roles & 50–950 ramp

primary
#B038BD
secondary
#8EC987
accent
#DE4A59
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #B038BD

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

Preview Lab → · Contrast checker → · Palette generator →

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