#B242DF#B242DF

#B242DF is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.2% C 0.235 H 314.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B242DF
RGBrgb(178, 66, 223)
HSLhsl(283, 71%, 57%)
HSVhsv(283, 70%, 87%)
CMYKcmyk(20.2%, 70.4%, 0%, 12.5%)
CIE-LABlab(50.32, 67.75, -59.60)
CIE-LCHlch(50.32, 90.23, 318.66°)
OKLaboklab(60.17% 0.1644 -0.168)
OKLCHoklch(60.17% 0.235 314.4)
XYZxyz(33.6254, 18.6903, 71.6340)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242DF #6FDF42
analogous
#6442DF #B242DF #DF42BD
triadic
#B242DF #DFB242 #42DFB2
tetradic
#B242DF #DF6442 #6FDF42 #42BDDF
square
#B242DF #DF6442 #6FDF42 #42BDDF
split-complementary
#B242DF #BDDF42 #42DF64
monochromatic
#6D188E #9421C3 #B242DF #C776E8 #DDABF1

Accessibility & contrast

On white

4.43
#B242DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#B242DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B242DF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242DF#FFFFFF#000000##000000
##B242DF1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#3A7ADB
Tritanopia (blue-blind)
#AE638C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b242df;
/* rgb */ color: rgb(178, 66, 223);
/* oklch */ color: oklch(60.2% 0.235 314.4);
Tailwind
colors: {
  custom: {
    50: '#cd80ea',
    500: '#b242df',
    950: '#000000',
  },
}
SCSS
$custom: #b242df;
$custom-light: #cd80ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b242df",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 282.803,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60165,
    "c": 0.23503,
    "h": 314.4
  },
  "luminance": 0.18689
}

Semantic roles & 50–950 ramp

primary
#B242DF
secondary
#B1DF9E
accent
#EE3A6E
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B242DF

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

Preview Lab → · Contrast checker → · Palette generator →

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