#B042B0#B042B0

#B042B0 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.193 H 327.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B042B0
RGBrgb(176, 66, 176)
HSLhsl(300, 45%, 47%)
HSVhsv(300, 63%, 69%)
CMYKcmyk(0%, 62.5%, 0%, 31%)
CIE-LABlab(47.32, 58.54, -37.28)
CIE-LCHlch(47.32, 69.40, 327.51°)
OKLaboklab(57.07% 0.1631 -0.1029)
OKLCHoklch(57.07% 0.193 327.7)
XYZxyz(27.6888, 16.2629, 42.7465)
Luminance0.1626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042B0 #42B042
analogous
#7942B0 #B042B0 #B04279
triadic
#B042B0 #B0B042 #42B0B0
tetradic
#B042B0 #B07942 #42B042 #4279B0
square
#B042B0 #B07942 #42B042 #4279B0
split-complementary
#B042B0 #79B042 #42B079
monochromatic
#572157 #833183 #B042B0 #C769C7 #D795D7

Accessibility & contrast

On white

4.94
#B042B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B042B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042B0
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042B0#FFFFFF#000000##FFFFFF
##B042B01.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B3
Deuteranopia (green-blind)
#5C75AD
Tritanopia (blue-blind)
#B55073
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b042b0;
/* rgb */ color: rgb(176, 66, 176);
/* oklch */ color: oklch(57.1% 0.193 327.7);
Tailwind
colors: {
  custom: {
    50: '#cb7ec8',
    500: '#b042b0',
    950: '#000000',
  },
}
SCSS
$custom: #b042b0;
$custom-light: #cb7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#b042b0",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 300,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57074,
    "c": 0.19283,
    "h": 327.7
  },
  "luminance": 0.16261
}

Semantic roles & 50–950 ramp

primary
#B042B0
secondary
#8BC38B
accent
#D55353
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B042B0

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

Preview Lab → · Contrast checker → · Palette generator →

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