#B242A0#B242A0

#B242A0 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.5% C 0.181 H 334.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B242A0
RGBrgb(178, 66, 160)
HSLhsl(310, 46%, 48%)
HSVhsv(310, 63%, 70%)
CMYKcmyk(0%, 62.9%, 10.1%, 30.2%)
CIE-LABlab(46.85, 56.39, -28.54)
CIE-LCHlch(46.85, 63.20, 333.15°)
OKLaboklab(56.54% 0.1636 -0.0778)
OKLCHoklch(56.54% 0.181 334.6)
XYZxyz(26.6537, 15.9016, 34.9164)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242A0 #42B254
analogous
#8C42B2 #B242A0 #B24268
triadic
#B242A0 #A0B242 #42A0B2
tetradic
#B242A0 #B28C42 #42B254 #4268B2
square
#B242A0 #B28C42 #42B254 #4268B2
split-complementary
#B242A0 #68B242 #42B28C
monochromatic
#592150 #853178 #B242A0 #C86AB8 #D896CE

Accessibility & contrast

On white

5.02
#B242A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#B242A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242A0
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242A0#FFFFFF#000000##FFFFFF
##B242A01.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4164A3
Deuteranopia (green-blind)
#65759D
Tritanopia (blue-blind)
#BA4A6B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b242a0;
/* rgb */ color: rgb(178, 66, 160);
/* oklch */ color: oklch(56.5% 0.181 334.6);
Tailwind
colors: {
  custom: {
    50: '#cc7ebc',
    500: '#b242a0',
    950: '#000000',
  },
}
SCSS
$custom: #b242a0;
$custom-light: #cc7ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#b242a0",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 160
  },
  "hsl": {
    "h": 309.643,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56537,
    "c": 0.18113,
    "h": 334.6
  },
  "luminance": 0.15899
}

Semantic roles & 50–950 ramp

primary
#B242A0
secondary
#8CC495
accent
#D66752
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B242A0

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

Preview Lab → · Contrast checker → · Palette generator →

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