#B242CB#B242CB

#B242CB is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.9% C 0.217 H 319.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B242CB
RGBrgb(178, 66, 203)
HSLhsl(289, 57%, 53%)
HSVhsv(289, 67%, 80%)
CMYKcmyk(12.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(49.10, 63.89, -50.13)
CIE-LCHlch(49.10, 81.21, 321.88°)
OKLaboklab(58.9% 0.1658 -0.1403)
OKLCHoklch(58.9% 0.217 319.8)
XYZxyz(31.0865, 17.6747, 58.2624)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242CB #5BCB42
analogous
#6D42CB #B242CB #CB429F
triadic
#B242CB #CBB242 #42CBB2
tetradic
#B242CB #CB6D42 #5BCB42 #429FCB
square
#B242CB #CB6D42 #5BCB42 #429FCB
split-complementary
#B242CB #9FCB42 #42CB6D
monochromatic
#642073 #8D2DA3 #B242CB #C672D8 #D9A2E5

Accessibility & contrast

On white

4.63
#B242CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B242CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B242CB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242CB#FFFFFF#000000##FFFFFF
##B242CB1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#096DCF
Deuteranopia (green-blind)
#4D79C8
Tritanopia (blue-blind)
#B35B81
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b242cb;
/* rgb */ color: rgb(178, 66, 203);
/* oklch */ color: oklch(58.9% 0.217 319.8);
Tailwind
colors: {
  custom: {
    50: '#cd7fdb',
    500: '#b242cb',
    950: '#000000',
  },
}
SCSS
$custom: #b242cb;
$custom-light: #cd7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b242cb",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 289.051,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58899,
    "c": 0.21715,
    "h": 319.8
  },
  "luminance": 0.17673
}

Semantic roles & 50–950 ramp

primary
#B242CB
secondary
#A2D297
accent
#E04864
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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