#B038BF#B038BF

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

Color values

HEX#B038BF
RGBrgb(176, 56, 191)
HSLhsl(293, 55%, 48%)
HSVhsv(293, 71%, 75%)
CMYKcmyk(7.9%, 70.7%, 0%, 25.1%)
CIE-LABlab(46.74, 65.10, -46.97)
CIE-LCHlch(46.74, 80.27, 324.19°)
OKLaboklab(56.92% 0.1742 -0.131)
OKLCHoklch(56.92% 0.218 323.1)
XYZxyz(28.7217, 15.8217, 50.8212)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B038BF #47BF38
analogous
#6C38BF #B038BF #BF388A
triadic
#B038BF #BFB038 #38BFB0
tetradic
#B038BF #BF6C38 #47BF38 #388ABF
square
#B038BF #BF6C38 #47BF38 #388ABF
split-complementary
#B038BF #8ABF38 #38BF6C
monochromatic
#591C60 #842A90 #B038BF #C563D1 #D792DF

Accessibility & contrast

On white

5.04
#B038BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B038BF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B038BF#FFFFFF#000000##FFFFFF
##B038BF1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0366C3
Deuteranopia (green-blind)
#4D73BC
Tritanopia (blue-blind)
#B35078
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b038bf;
/* rgb */ color: rgb(176, 56, 191);
/* oklch */ color: oklch(56.9% 0.218 323.1);
Tailwind
colors: {
  custom: {
    50: '#cb7ad3',
    500: '#b038bf',
    950: '#000000',
  },
}
SCSS
$custom: #b038bf;
$custom-light: #cb7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#b038bf",
  "rgb": {
    "r": 176,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 293.333,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56923,
    "c": 0.21797,
    "h": 323.1
  },
  "luminance": 0.1582
}

Semantic roles & 50–950 ramp

primary
#B038BF
secondary
#90CA89
accent
#DE4A5A
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #B038BF

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

Preview Lab → · Contrast checker → · Palette generator →

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