#B242CF#B242CF

#B242CF is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.221 H 318.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B242CF
RGBrgb(178, 66, 207)
HSLhsl(288, 59%, 54%)
HSVhsv(288, 68%, 81%)
CMYKcmyk(14%, 68.1%, 0%, 18.8%)
CIE-LABlab(49.34, 64.65, -52.05)
CIE-LCHlch(49.34, 83.00, 321.16°)
OKLaboklab(59.14% 0.1656 -0.1459)
OKLCHoklch(59.14% 0.221 318.6)
XYZxyz(31.5693, 17.8678, 60.8053)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242CF #5FCF42
analogous
#6B42CF #B242CF #CF42A5
triadic
#B242CF #CFB242 #42CFB2
tetradic
#B242CF #CF6B42 #5FCF42 #42A5CF
square
#B242CF #CF6B42 #5FCF42 #42A5CF
split-complementary
#B242CF #A5CF42 #42CF6B
monochromatic
#661F78 #8F2BA9 #B242CF #C673DB #DAA4E8

Accessibility & contrast

On white

4.59
#B242CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B242CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B242CF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242CF#FFFFFF#000000##FFFFFF
##B242CF1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#4A79CC
Tritanopia (blue-blind)
#B25C84
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b242cf;
/* rgb */ color: rgb(178, 66, 207);
/* oklch */ color: oklch(59.1% 0.221 318.6);
Tailwind
colors: {
  custom: {
    50: '#cd7fde',
    500: '#b242cf',
    950: '#000000',
  },
}
SCSS
$custom: #b242cf;
$custom-light: #cd7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b242cf",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 287.66,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59144,
    "c": 0.2207,
    "h": 318.6
  },
  "luminance": 0.17866
}

Semantic roles & 50–950 ramp

primary
#B242CF
secondary
#A5D598
accent
#E34566
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242CF

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

Preview Lab → · Contrast checker → · Palette generator →

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