#B242C8#B242C8

#B242C8 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.215 H 320.6°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B242C8
RGBrgb(178, 66, 200)
HSLhsl(290, 55%, 52%)
HSVhsv(290, 67%, 78%)
CMYKcmyk(11%, 67%, 0%, 21.6%)
CIE-LABlab(48.92, 63.33, -48.68)
CIE-LCHlch(48.92, 79.88, 322.45°)
OKLaboklab(58.72% 0.1659 -0.136)
OKLCHoklch(58.72% 0.215 320.6)
XYZxyz(30.7324, 17.5331, 56.3978)
Luminance0.1753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242C8 #58C842
analogous
#6F42C8 #B242C8 #C8429B
triadic
#B242C8 #C8B242 #42C8B2
tetradic
#B242C8 #C86F42 #58C842 #429BC8
square
#B242C8 #C86F42 #58C842 #429BC8
split-complementary
#B242C8 #9BC842 #42C86F
monochromatic
#62206F #8C2E9F #B242C8 #C571D6 #D9A1E4

Accessibility & contrast

On white

4.66
#B242C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#B242C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B242C8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242C8#FFFFFF#000000##FFFFFF
##B242C81.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146CCC
Deuteranopia (green-blind)
#4F78C5
Tritanopia (blue-blind)
#B35980
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b242c8;
/* rgb */ color: rgb(178, 66, 200);
/* oklch */ color: oklch(58.7% 0.215 320.6);
Tailwind
colors: {
  custom: {
    50: '#cd7fd9',
    500: '#b242c8',
    950: '#000000',
  },
}
SCSS
$custom: #b242c8;
$custom-light: #cd7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b242c8",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 290.149,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58718,
    "c": 0.21451,
    "h": 320.6
  },
  "luminance": 0.17532
}

Semantic roles & 50–950 ramp

primary
#B242C8
secondary
#9FD096
accent
#DE4A62
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242C8

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

Preview Lab → · Contrast checker → · Palette generator →

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