#B045C8#B045C8

#B045C8 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.210 H 319.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B045C8
RGBrgb(176, 69, 200)
HSLhsl(289, 54%, 53%)
HSVhsv(289, 66%, 78%)
CMYKcmyk(12%, 65.5%, 0%, 21.6%)
CIE-LABlab(49.08, 61.64, -48.45)
CIE-LCHlch(49.08, 78.40, 321.83°)
OKLaboklab(58.77% 0.1602 -0.1354)
OKLCHoklch(58.77% 0.21 319.8)
XYZxyz(30.4566, 17.6579, 56.4364)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045C8 #5DC845
analogous
#6F45C8 #B045C8 #C8459E
triadic
#B045C8 #C8B045 #45C8B0
tetradic
#B045C8 #C86F45 #5DC845 #459EC8
square
#B045C8 #C86F45 #5DC845 #459EC8
split-complementary
#B045C8 #9EC845 #45C86F
monochromatic
#632171 #8C2FA0 #B045C8 #C474D6 #D8A3E4

Accessibility & contrast

On white

4.63
#B045C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B045C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B045C8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045C8#FFFFFF#000000##FFFFFF
##B045C81.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6DCC
Deuteranopia (green-blind)
#4F78C5
Tritanopia (blue-blind)
#B15C81
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b045c8;
/* rgb */ color: rgb(176, 69, 200);
/* oklch */ color: oklch(58.8% 0.210 319.8);
Tailwind
colors: {
  custom: {
    50: '#cb80d9',
    500: '#b045c8',
    950: '#000000',
  },
}
SCSS
$custom: #b045c8;
$custom-light: #cb80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b045c8",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 289.008,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58769,
    "c": 0.20979,
    "h": 319.8
  },
  "luminance": 0.17656
}

Semantic roles & 50–950 ramp

primary
#B045C8
secondary
#A2D198
accent
#DE4A65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #B045C8

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

Preview Lab → · Contrast checker → · Palette generator →

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