#B245A2#B245A2

#B245A2 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.0% C 0.178 H 333.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B245A2
RGBrgb(178, 69, 162)
HSLhsl(309, 44%, 48%)
HSVhsv(309, 61%, 70%)
CMYKcmyk(0%, 61.2%, 9%, 30.2%)
CIE-LABlab(47.41, 55.42, -28.85)
CIE-LCHlch(47.41, 62.48, 332.50°)
OKLaboklab(56.98% 0.1601 -0.0787)
OKLCHoklch(56.98% 0.178 333.8)
XYZxyz(27.0099, 16.3319, 35.9052)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B245A2 #45B255
analogous
#8B45B2 #B245A2 #B2456B
triadic
#B245A2 #A2B245 #45A2B2
tetradic
#B245A2 #B28B45 #45B255 #456BB2
square
#B245A2 #B28B45 #45B255 #456BB2
split-complementary
#B245A2 #6BB245 #45B28B
monochromatic
#5A2352 #86347A #B245A2 #C76EBA #D89ACF

Accessibility & contrast

On white

4.92
#B245A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B245A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B245A2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B245A2#FFFFFF#000000##FFFFFF
##B245A21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4366A5
Deuteranopia (green-blind)
#66769F
Tritanopia (blue-blind)
#BA4D6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b245a2;
/* rgb */ color: rgb(178, 69, 162);
/* oklch */ color: oklch(57.0% 0.178 333.8);
Tailwind
colors: {
  custom: {
    50: '#cc7fbe',
    500: '#b245a2',
    950: '#000000',
  },
}
SCSS
$custom: #b245a2;
$custom-light: #cc7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b245a2",
  "rgb": {
    "r": 178,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 308.807,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56978,
    "c": 0.17838,
    "h": 333.8
  },
  "luminance": 0.1633
}

Semantic roles & 50–950 ramp

primary
#B245A2
secondary
#8FC497
accent
#D46754
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B245A2

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

Preview Lab → · Contrast checker → · Palette generator →

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