#B038B2#B038B2

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

Color values

HEX#B038B2
RGBrgb(176, 56, 178)
HSLhsl(299, 52%, 46%)
HSVhsv(299, 69%, 70%)
CMYKcmyk(1.1%, 68.5%, 0%, 30.2%)
CIE-LABlab(46.01, 62.84, -40.52)
CIE-LCHlch(46.01, 74.77, 327.18°)
OKLaboklab(56.16% 0.1743 -0.1123)
OKLCHoklch(56.16% 0.207 327.2)
XYZxyz(27.3541, 15.2747, 43.6184)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B038B2 #3AB238
analogous
#7338B2 #B038B2 #B23877
triadic
#B038B2 #B2B038 #38B2B0
tetradic
#B038B2 #B27338 #3AB238 #3877B2
square
#B038B2 #B27338 #3AB238 #3877B2
split-complementary
#B038B2 #77B238 #38B273
monochromatic
#541B55 #822983 #B038B2 #CA5CCC #D98ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B038B2#FFFFFF#000000##FFFFFF
##B038B21.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)
#2363B5
Deuteranopia (green-blind)
#5672AF
Tritanopia (blue-blind)
#B54A71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b038b2;
/* rgb */ color: rgb(176, 56, 178);
/* oklch */ color: oklch(56.2% 0.207 327.2);
Tailwind
colors: {
  custom: {
    50: '#cb79c9',
    500: '#b038b2',
    950: '#000000',
  },
}
SCSS
$custom: #b038b2;
$custom-light: #cb79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b038b2",
  "rgb": {
    "r": 176,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 299.016,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56162,
    "c": 0.20733,
    "h": 327.2
  },
  "luminance": 0.15273
}

Semantic roles & 50–950 ramp

primary
#B038B2
secondary
#82C581
accent
#DC4C4F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B038B2

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

Preview Lab → · Contrast checker → · Palette generator →

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