#B245AF#B245AF

#B245AF is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.6% C 0.189 H 328.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B245AF
RGBrgb(178, 69, 175)
HSLhsl(302, 44%, 48%)
HSVhsv(302, 61%, 70%)
CMYKcmyk(0%, 61.2%, 1.7%, 30.2%)
CIE-LABlab(48.03, 57.59, -35.55)
CIE-LCHlch(48.03, 67.68, 328.32°)
OKLaboklab(57.64% 0.1616 -0.0979)
OKLCHoklch(57.64% 0.189 328.8)
XYZxyz(28.2258, 16.8183, 42.3087)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B245AF #45B248
analogous
#7E45B2 #B245AF #B24578
triadic
#B245AF #AFB245 #45AFB2
tetradic
#B245AF #B27E45 #45B248 #4578B2
square
#B245AF #B27E45 #45B248 #4578B2
split-complementary
#B245AF #78B245 #45B27E
monochromatic
#5A2358 #863484 #B245AF #C76EC4 #D89AD6

Accessibility & contrast

On white

4.81
#B245AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B245AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B245AF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B245AF#FFFFFF#000000##FFFFFF
##B245AF1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A69B2
Deuteranopia (green-blind)
#6077AC
Tritanopia (blue-blind)
#B85274
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b245af;
/* rgb */ color: rgb(178, 69, 175);
/* oklch */ color: oklch(57.6% 0.189 328.8);
Tailwind
colors: {
  custom: {
    50: '#cc80c7',
    500: '#b245af',
    950: '#000000',
  },
}
SCSS
$custom: #b245af;
$custom-light: #cc80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b245af",
  "rgb": {
    "r": 178,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 301.651,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57636,
    "c": 0.18895,
    "h": 328.8
  },
  "luminance": 0.16816
}

Semantic roles & 50–950 ramp

primary
#B245AF
secondary
#8FC490
accent
#D45754
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B245AF

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

Preview Lab → · Contrast checker → · Palette generator →

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