#B242D1#B242D1

#B242D1 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.222 H 318.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B242D1
RGBrgb(178, 66, 209)
HSLhsl(287, 61%, 54%)
HSVhsv(287, 68%, 82%)
CMYKcmyk(14.8%, 68.4%, 0%, 18%)
CIE-LABlab(49.46, 65.03, -53.01)
CIE-LCHlch(49.46, 83.90, 320.82°)
OKLaboklab(59.27% 0.1655 -0.1487)
OKLCHoklch(59.27% 0.222 318.1)
XYZxyz(31.8153, 17.9662, 62.1012)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242D1 #61D142
analogous
#6B42D1 #B242D1 #D142A9
triadic
#B242D1 #D1B242 #42D1B2
tetradic
#B242D1 #D16B42 #61D142 #42A9D1
square
#B242D1 #D16B42 #61D142 #42A9D1
split-complementary
#B242D1 #A9D142 #42D16B
monochromatic
#671E7B #902AAC #B242D1 #C673DD #DAA4E9

Accessibility & contrast

On white

4.57
#B242D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#B242D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B242D1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242D1#FFFFFF#000000##000000
##B242D11.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED5
Deuteranopia (green-blind)
#4879CE
Tritanopia (blue-blind)
#B15D85
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b242d1;
/* rgb */ color: rgb(178, 66, 209);
/* oklch */ color: oklch(59.3% 0.222 318.1);
Tailwind
colors: {
  custom: {
    50: '#cd7fe0',
    500: '#b242d1',
    950: '#000000',
  },
}
SCSS
$custom: #b242d1;
$custom-light: #cd7fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#b242d1",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 286.993,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59268,
    "c": 0.22248,
    "h": 318.1
  },
  "luminance": 0.17965
}

Semantic roles & 50–950 ramp

primary
#B242D1
secondary
#A6D699
accent
#E44467
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242D1

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

Preview Lab → · Contrast checker → · Palette generator →

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