#B242CC#B242CC

#B242CC is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.218 H 319.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B242CC
RGBrgb(178, 66, 204)
HSLhsl(289, 58%, 53%)
HSVhsv(289, 68%, 80%)
CMYKcmyk(12.7%, 67.6%, 0%, 20%)
CIE-LABlab(49.16, 64.08, -50.61)
CIE-LCHlch(49.16, 81.66, 321.70°)
OKLaboklab(58.96% 0.1657 -0.1417)
OKLCHoklch(58.96% 0.218 319.5)
XYZxyz(31.2060, 17.7225, 58.8921)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242CC #5CCC42
analogous
#6D42CC #B242CC #CC42A1
triadic
#B242CC #CCB242 #42CCB2
tetradic
#B242CC #CC6D42 #5CCC42 #42A1CC
square
#B242CC #CC6D42 #5CCC42 #42A1CC
split-complementary
#B242CC #A1CC42 #42CC6D
monochromatic
#641F74 #8E2CA4 #B242CC #C672D9 #D9A2E6

Accessibility & contrast

On white

4.62
#B242CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#B242CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B242CC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242CC#FFFFFF#000000##FFFFFF
##B242CC1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056DD0
Deuteranopia (green-blind)
#4C79C9
Tritanopia (blue-blind)
#B25B82
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b242cc;
/* rgb */ color: rgb(178, 66, 204);
/* oklch */ color: oklch(59.0% 0.218 319.5);
Tailwind
colors: {
  custom: {
    50: '#cd7fdc',
    500: '#b242cc',
    950: '#000000',
  },
}
SCSS
$custom: #b242cc;
$custom-light: #cd7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b242cc",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 288.696,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5896,
    "c": 0.21804,
    "h": 319.5
  },
  "luminance": 0.17721
}

Semantic roles & 50–950 ramp

primary
#B242CC
secondary
#A2D397
accent
#E14764
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242CC

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

Preview Lab → · Contrast checker → · Palette generator →

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