#B038D7#B038D7

#B038D7 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.4% C 0.238 H 316.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B038D7
RGBrgb(176, 56, 215)
HSLhsl(285, 67%, 53%)
HSVhsv(285, 74%, 84%)
CMYKcmyk(18.1%, 74%, 0%, 15.7%)
CIE-LABlab(48.22, 69.52, -58.45)
CIE-LCHlch(48.22, 90.82, 319.94°)
OKLaboklab(58.45% 0.1723 -0.1646)
OKLCHoklch(58.45% 0.238 316.3)
XYZxyz(31.5825, 16.9660, 65.8879)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B038D7 #5FD738
analogous
#6038D7 #B038D7 #D738AE
triadic
#B038D7 #D7B038 #38D7B0
tetradic
#B038D7 #D76038 #5FD738 #38AED7
square
#B038D7 #D76038 #5FD738 #38AED7
split-complementary
#B038D7 #AED738 #38D760
monochromatic
#63197C #8C23AF #B038D7 #C46BE1 #D89EEB

Accessibility & contrast

On white

4.78
#B038D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B038D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B038D7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B038D7#FFFFFF#000000##FFFFFF
##B038D71.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#3776D4
Tritanopia (blue-blind)
#AD5A85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b038d7;
/* rgb */ color: rgb(176, 56, 215);
/* oklch */ color: oklch(58.4% 0.238 316.3);
Tailwind
colors: {
  custom: {
    50: '#cc7be4',
    500: '#b038d7',
    950: '#000000',
  },
}
SCSS
$custom: #b038d7;
$custom-light: #cc7be4;
$custom-dark: #000000;
JSON
{
  "hex": "#b038d7",
  "rgb": {
    "r": 176,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 285.283,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58447,
    "c": 0.23826,
    "h": 316.3
  },
  "luminance": 0.16965
}

Semantic roles & 50–950 ramp

primary
#B038D7
secondary
#A4D893
accent
#E93E68
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B038D7

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

Preview Lab → · Contrast checker → · Palette generator →

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