#B242A2#B242A2

#B242A2 is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.6% C 0.183 H 333.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B242A2
RGBrgb(178, 66, 162)
HSLhsl(309, 46%, 48%)
HSVhsv(309, 63%, 70%)
CMYKcmyk(0%, 62.9%, 9%, 30.2%)
CIE-LABlab(46.94, 56.71, -29.58)
CIE-LCHlch(46.94, 63.96, 332.45°)
OKLaboklab(56.64% 0.1639 -0.0807)
OKLCHoklch(56.64% 0.183 333.8)
XYZxyz(26.8300, 15.9721, 35.8452)
Luminance0.1597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242A2 #42B252
analogous
#8A42B2 #B242A2 #B2426A
triadic
#B242A2 #A2B242 #42A2B2
tetradic
#B242A2 #B28A42 #42B252 #426AB2
square
#B242A2 #B28A42 #42B252 #426AB2
split-complementary
#B242A2 #6AB242 #42B28A
monochromatic
#592151 #853179 #B242A2 #C86ABA #D896CF

Accessibility & contrast

On white

5.01
#B242A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B242A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242A2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242A2#FFFFFF#000000##FFFFFF
##B242A21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#BA4A6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b242a2;
/* rgb */ color: rgb(178, 66, 162);
/* oklch */ color: oklch(56.6% 0.183 333.8);
Tailwind
colors: {
  custom: {
    50: '#cc7ebe',
    500: '#b242a2',
    950: '#000000',
  },
}
SCSS
$custom: #b242a2;
$custom-light: #cc7ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b242a2",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 308.571,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56635,
    "c": 0.18268,
    "h": 333.8
  },
  "luminance": 0.1597
}

Semantic roles & 50–950 ramp

primary
#B242A2
secondary
#8CC494
accent
#D66552
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B242A2

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

Preview Lab → · Contrast checker → · Palette generator →

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