#B242C5#B242C5

#B242C5 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.5% C 0.212 H 321.5°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B242C5
RGBrgb(178, 66, 197)
HSLhsl(291, 53%, 52%)
HSVhsv(291, 66%, 77%)
CMYKcmyk(9.6%, 66.5%, 0%, 22.7%)
CIE-LABlab(48.75, 62.78, -47.22)
CIE-LCHlch(48.75, 78.55, 323.05°)
OKLaboklab(58.54% 0.1659 -0.1318)
OKLCHoklch(58.54% 0.212 321.5)
XYZxyz(30.3852, 17.3942, 54.5694)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242C5 #55C542
analogous
#7142C5 #B242C5 #C54297
triadic
#B242C5 #C5B242 #42C5B2
tetradic
#B242C5 #C57142 #55C542 #4297C5
square
#B242C5 #C57142 #55C542 #4297C5
split-complementary
#B242C5 #97C542 #42C571
monochromatic
#61216C #8B2F9A #B242C5 #C571D3 #D8A0E2

Accessibility & contrast

On white

4.69
#B242C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B242C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242C5
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242C5#FFFFFF#000000##FFFFFF
##B242C51.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6CC9
Deuteranopia (green-blind)
#5178C2
Tritanopia (blue-blind)
#B4587E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b242c5;
/* rgb */ color: rgb(178, 66, 197);
/* oklch */ color: oklch(58.5% 0.212 321.5);
Tailwind
colors: {
  custom: {
    50: '#cc7fd7',
    500: '#b242c5',
    950: '#000000',
  },
}
SCSS
$custom: #b242c5;
$custom-light: #cc7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#b242c5",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 291.298,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58539,
    "c": 0.21187,
    "h": 321.5
  },
  "luminance": 0.17393
}

Semantic roles & 50–950 ramp

primary
#B242C5
secondary
#9DCE95
accent
#DC4B60
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B242C5

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

Preview Lab → · Contrast checker → · Palette generator →

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