#B242C2#B242C2

#B242C2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.209 H 322.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B242C2
RGBrgb(178, 66, 194)
HSLhsl(293, 51%, 51%)
HSVhsv(293, 66%, 76%)
CMYKcmyk(8.2%, 66%, 0%, 23.9%)
CIE-LABlab(48.58, 62.22, -45.75)
CIE-LCHlch(48.58, 77.24, 323.67°)
OKLaboklab(58.36% 0.1659 -0.1275)
OKLCHoklch(58.36% 0.209 322.5)
XYZxyz(30.0449, 17.2581, 52.7771)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242C2 #52C242
analogous
#7242C2 #B242C2 #C24292
triadic
#B242C2 #C2B242 #42C2B2
tetradic
#B242C2 #C27242 #52C242 #4292C2
square
#B242C2 #C27242 #52C242 #4292C2
split-complementary
#B242C2 #92C242 #42C272
monochromatic
#5F2268 #8A3196 #B242C2 #C570D1 #D89FE0

Accessibility & contrast

On white

4.72
#B242C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B242C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242C2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242C2#FFFFFF#000000##FFFFFF
##B242C21.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#5378BF
Tritanopia (blue-blind)
#B4577D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b242c2;
/* rgb */ color: rgb(178, 66, 194);
/* oklch */ color: oklch(58.4% 0.209 322.5);
Tailwind
colors: {
  custom: {
    50: '#cc7fd5',
    500: '#b242c2',
    950: '#000000',
  },
}
SCSS
$custom: #b242c2;
$custom-light: #cc7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#b242c2",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 292.5,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58362,
    "c": 0.20925,
    "h": 322.5
  },
  "luminance": 0.17256
}

Semantic roles & 50–950 ramp

primary
#B242C2
secondary
#9BCC94
accent
#DB4D5F
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B242C2

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

Preview Lab → · Contrast checker → · Palette generator →

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