#B242D4#B242D4

#B242D4 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.5% C 0.225 H 317.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B242D4
RGBrgb(178, 66, 212)
HSLhsl(286, 63%, 55%)
HSVhsv(286, 69%, 83%)
CMYKcmyk(16%, 68.9%, 0%, 16.9%)
CIE-LABlab(49.64, 65.61, -54.43)
CIE-LCHlch(49.64, 85.25, 320.32°)
OKLaboklab(59.46% 0.1653 -0.1529)
OKLCHoklch(59.46% 0.225 317.2)
XYZxyz(32.1902, 18.1162, 64.0757)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242D4 #64D442
analogous
#6942D4 #B242D4 #D442AD
triadic
#B242D4 #D4B242 #42D4B2
tetradic
#B242D4 #D46942 #64D442 #42ADD4
square
#B242D4 #D46942 #64D442 #42ADD4
split-complementary
#B242D4 #ADD442 #42D469
monochromatic
#681D7F #9128B1 #B242D4 #C674DF #DBA6EB

Accessibility & contrast

On white

4.54
#B242D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B242D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B242D4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242D4#FFFFFF#000000##000000
##B242D41.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#4579D1
Tritanopia (blue-blind)
#B15E86
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b242d4;
/* rgb */ color: rgb(178, 66, 212);
/* oklch */ color: oklch(59.5% 0.225 317.2);
Tailwind
colors: {
  custom: {
    50: '#cd7fe2',
    500: '#b242d4',
    950: '#000000',
  },
}
SCSS
$custom: #b242d4;
$custom-light: #cd7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#b242d4",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 286.027,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59457,
    "c": 0.22515,
    "h": 317.2
  },
  "luminance": 0.18115
}

Semantic roles & 50–950 ramp

primary
#B242D4
secondary
#A8D89A
accent
#E64268
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B242D4

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

Preview Lab → · Contrast checker → · Palette generator →

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