#B242CD#B242CD

#B242CD is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.219 H 319.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B242CD
RGBrgb(178, 66, 205)
HSLhsl(288, 58%, 53%)
HSVhsv(288, 68%, 80%)
CMYKcmyk(13.2%, 67.8%, 0%, 19.6%)
CIE-LABlab(49.22, 64.27, -51.09)
CIE-LCHlch(49.22, 82.10, 321.52°)
OKLaboklab(59.02% 0.1657 -0.1431)
OKLCHoklch(59.02% 0.219 319.2)
XYZxyz(31.3263, 17.7706, 59.5258)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242CD #5DCD42
analogous
#6C42CD #B242CD #CD42A3
triadic
#B242CD #CDB242 #42CDB2
tetradic
#B242CD #CD6C42 #5DCD42 #42A3CD
square
#B242CD #CD6C42 #5DCD42 #42A3CD
split-complementary
#B242CD #A3CD42 #42CD6C
monochromatic
#651F76 #8E2CA6 #B242CD #C672DA #D9A3E7

Accessibility & contrast

On white

4.61
#B242CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B242CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B242CD
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242CD#FFFFFF#000000##FFFFFF
##B242CD1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b242cd;
/* rgb */ color: rgb(178, 66, 205);
/* oklch */ color: oklch(59.0% 0.219 319.2);
Tailwind
colors: {
  custom: {
    50: '#cd7fdd',
    500: '#b242cd',
    950: '#000000',
  },
}
SCSS
$custom: #b242cd;
$custom-light: #cd7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b242cd",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 288.345,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59021,
    "c": 0.21893,
    "h": 319.2
  },
  "luminance": 0.17769
}

Semantic roles & 50–950 ramp

primary
#B242CD
secondary
#A3D397
accent
#E14665
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242CD

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

Preview Lab → · Contrast checker → · Palette generator →

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