#B242D3#B242D3

#B242D3 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.224 H 317.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B242D3
RGBrgb(178, 66, 211)
HSLhsl(286, 62%, 54%)
HSVhsv(286, 69%, 83%)
CMYKcmyk(15.6%, 68.7%, 0%, 17.3%)
CIE-LABlab(49.58, 65.41, -53.96)
CIE-LCHlch(49.58, 84.80, 320.48°)
OKLaboklab(59.39% 0.1654 -0.1515)
OKLCHoklch(59.39% 0.224 317.5)
XYZxyz(32.0645, 18.0659, 63.4135)
Luminance0.1807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242D3 #63D342
analogous
#6A42D3 #B242D3 #D342AC
triadic
#B242D3 #D3B242 #42D3B2
tetradic
#B242D3 #D36A42 #63D342 #42ACD3
square
#B242D3 #D36A42 #63D342 #42ACD3
split-complementary
#B242D3 #ACD342 #42D36A
monochromatic
#681D7D #9029AF #B242D3 #C674DF #DAA5EA

Accessibility & contrast

On white

4.55
#B242D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#B242D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B242D3
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242D3#FFFFFF#000000##000000
##B242D31.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#4679D0
Tritanopia (blue-blind)
#B15E86
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b242d3;
/* rgb */ color: rgb(178, 66, 211);
/* oklch */ color: oklch(59.4% 0.224 317.5);
Tailwind
colors: {
  custom: {
    50: '#cd7fe1',
    500: '#b242d3',
    950: '#000000',
  },
}
SCSS
$custom: #b242d3;
$custom-light: #cd7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#b242d3",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 286.345,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.59394,
    "c": 0.22426,
    "h": 317.5
  },
  "luminance": 0.18065
}

Semantic roles & 50–950 ramp

primary
#B242D3
secondary
#A8D79A
accent
#E54268
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242D3

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

Preview Lab → · Contrast checker → · Palette generator →

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