#B242D8#B242D8

#B242D8 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.7% C 0.229 H 316.2°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B242D8
RGBrgb(178, 66, 216)
HSLhsl(285, 66%, 55%)
HSVhsv(285, 69%, 85%)
CMYKcmyk(17.6%, 69.4%, 0%, 15.3%)
CIE-LABlab(49.88, 66.38, -56.32)
CIE-LCHlch(49.88, 87.06, 319.69°)
OKLaboklab(59.71% 0.165 -0.1584)
OKLCHoklch(59.71% 0.229 316.2)
XYZxyz(32.7011, 18.3205, 66.7661)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242D8 #68D842
analogous
#6742D8 #B242D8 #D842B3
triadic
#B242D8 #D8B242 #42D8B2
tetradic
#B242D8 #D86742 #68D842 #42B3D8
square
#B242D8 #D86742 #68D842 #42B3D8
split-complementary
#B242D8 #B3D842 #42D867
monochromatic
#6A1B84 #9226B7 #B242D8 #C775E2 #DBA7ED

Accessibility & contrast

On white

4.50
#B242D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#B242D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B242D8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242D8#FFFFFF#000000##000000
##B242D81.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#B06089
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b242d8;
/* rgb */ color: rgb(178, 66, 216);
/* oklch */ color: oklch(59.7% 0.229 316.2);
Tailwind
colors: {
  custom: {
    50: '#cd80e5',
    500: '#b242d8',
    950: '#000000',
  },
}
SCSS
$custom: #b242d8;
$custom-light: #cd80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b242d8",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 284.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59711,
    "c": 0.22874,
    "h": 316.2
  },
  "luminance": 0.18319
}

Semantic roles & 50–950 ramp

primary
#B242D8
secondary
#ABDA9C
accent
#E93F6A
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B242D8

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

Preview Lab → · Contrast checker → · Palette generator →

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