#B038AF#B038AF

#B038AF is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.205 H 328.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B038AF
RGBrgb(176, 56, 175)
HSLhsl(301, 52%, 45%)
HSVhsv(301, 68%, 69%)
CMYKcmyk(0%, 68.2%, 0.6%, 31%)
CIE-LABlab(45.85, 62.33, -39.01)
CIE-LCHlch(45.85, 73.53, 327.96°)
OKLaboklab(55.99% 0.1742 -0.1079)
OKLCHoklch(55.99% 0.205 328.2)
XYZxyz(27.0562, 15.1555, 42.0494)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B038AF #38B039
analogous
#7538B0 #B038AF #B03873
triadic
#B038AF #AFB038 #38AFB0
tetradic
#B038AF #B07538 #38B039 #3873B0
square
#B038AF #B07538 #38B039 #3873B0
split-complementary
#B038AF #73B038 #38B075
monochromatic
#531A53 #822981 #B038AF #CB5BCA #D989D9

Accessibility & contrast

On white

5.21
#B038AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B038AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B038AF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B038AF#FFFFFF#000000##FFFFFF
##B038AF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#B6496F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b038af;
/* rgb */ color: rgb(176, 56, 175);
/* oklch */ color: oklch(56.0% 0.205 328.2);
Tailwind
colors: {
  custom: {
    50: '#cb79c7',
    500: '#b038af',
    950: '#000000',
  },
}
SCSS
$custom: #b038af;
$custom-light: #cb79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b038af",
  "rgb": {
    "r": 176,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 300.5,
    "s": 51.724,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55994,
    "c": 0.20493,
    "h": 328.2
  },
  "luminance": 0.15154
}

Semantic roles & 50–950 ramp

primary
#B038AF
secondary
#80C481
accent
#DB4E4D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B038AF

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

Preview Lab → · Contrast checker → · Palette generator →

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