#B038C2#B038C2

#B038C2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.1% C 0.220 H 322.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B038C2
RGBrgb(176, 56, 194)
HSLhsl(292, 55%, 49%)
HSVhsv(292, 71%, 76%)
CMYKcmyk(9.3%, 71.1%, 0%, 23.9%)
CIE-LABlab(46.92, 65.63, -48.43)
CIE-LCHlch(46.92, 81.57, 323.58°)
OKLaboklab(57.11% 0.1741 -0.1353)
OKLCHoklch(57.11% 0.22 322.1)
XYZxyz(29.0553, 15.9551, 52.5777)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B038C2 #4AC238
analogous
#6B38C2 #B038C2 #C2388F
triadic
#B038C2 #C2B038 #38C2B0
tetradic
#B038C2 #C26B38 #4AC238 #388FC2
square
#B038C2 #C26B38 #4AC238 #388FC2
split-complementary
#B038C2 #8FC238 #38C26B
monochromatic
#5A1D63 #852A93 #B038C2 #C465D2 #D694E0

Accessibility & contrast

On white

5.01
#B038C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B038C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B038C2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B038C2#FFFFFF#000000##FFFFFF
##B038C21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#4B74BF
Tritanopia (blue-blind)
#B2517A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b038c2;
/* rgb */ color: rgb(176, 56, 194);
/* oklch */ color: oklch(57.1% 0.220 322.1);
Tailwind
colors: {
  custom: {
    50: '#cb7ad5',
    500: '#b038c2',
    950: '#000000',
  },
}
SCSS
$custom: #b038c2;
$custom-light: #cb7ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#b038c2",
  "rgb": {
    "r": 176,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 292.174,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57105,
    "c": 0.22047,
    "h": 322.1
  },
  "luminance": 0.15953
}

Semantic roles & 50–950 ramp

primary
#B038C2
secondary
#93CB8A
accent
#DF495D
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #B038C2

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

Preview Lab → · Contrast checker → · Palette generator →

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