#B242CE#B242CE

#B242CE is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.220 H 318.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B242CE
RGBrgb(178, 66, 206)
HSLhsl(288, 59%, 53%)
HSVhsv(288, 68%, 81%)
CMYKcmyk(13.6%, 68%, 0%, 19.2%)
CIE-LABlab(49.28, 64.46, -51.57)
CIE-LCHlch(49.28, 82.55, 321.34°)
OKLaboklab(59.08% 0.1657 -0.1445)
OKLCHoklch(59.08% 0.22 318.9)
XYZxyz(31.4474, 17.8191, 60.1635)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242CE #5ECE42
analogous
#6C42CE #B242CE #CE42A4
triadic
#B242CE #CEB242 #42CEB2
tetradic
#B242CE #CE6C42 #5ECE42 #42A4CE
square
#B242CE #CE6C42 #5ECE42 #42A4CE
split-complementary
#B242CE #A4CE42 #42CE6C
monochromatic
#651F77 #8F2BA7 #B242CE #C673DB #DAA3E7

Accessibility & contrast

On white

4.60
#B242CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#B242CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B242CE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242CE#FFFFFF#000000##FFFFFF
##B242CE1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED2
Deuteranopia (green-blind)
#4B79CB
Tritanopia (blue-blind)
#B25C83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b242ce;
/* rgb */ color: rgb(178, 66, 206);
/* oklch */ color: oklch(59.1% 0.220 318.9);
Tailwind
colors: {
  custom: {
    50: '#cd7fde',
    500: '#b242ce',
    950: '#000000',
  },
}
SCSS
$custom: #b242ce;
$custom-light: #cd7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b242ce",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 288,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59082,
    "c": 0.21981,
    "h": 318.9
  },
  "luminance": 0.17818
}

Semantic roles & 50–950 ramp

primary
#B242CE
secondary
#A4D498
accent
#E24665
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242CE

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

Preview Lab → · Contrast checker → · Palette generator →

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