#B242D9#B242D9

#B242D9 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.230 H 315.9°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B242D9
RGBrgb(178, 66, 217)
HSLhsl(285, 67%, 55%)
HSVhsv(285, 70%, 85%)
CMYKcmyk(18%, 69.6%, 0%, 14.9%)
CIE-LABlab(49.94, 66.58, -56.79)
CIE-LCHlch(49.94, 87.51, 319.53°)
OKLaboklab(59.78% 0.1649 -0.1598)
OKLCHoklch(59.78% 0.23 315.9)
XYZxyz(32.8307, 18.3724, 67.4490)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242D9 #69D942
analogous
#6642D9 #B242D9 #D942B5
triadic
#B242D9 #D9B242 #42D9B2
tetradic
#B242D9 #D96642 #69D942 #42B5D9
square
#B242D9 #D96642 #69D942 #42B5D9
split-complementary
#B242D9 #B5D942 #42D966
monochromatic
#6A1B86 #9325B9 #B242D9 #C775E3 #DCA8ED

Accessibility & contrast

On white

4.49
#B242D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#B242D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B242D9
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242D9#FFFFFF#000000##000000
##B242D91.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#417AD6
Tritanopia (blue-blind)
#AF6089
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b242d9;
/* rgb */ color: rgb(178, 66, 217);
/* oklch */ color: oklch(59.8% 0.230 315.9);
Tailwind
colors: {
  custom: {
    50: '#cd80e5',
    500: '#b242d9',
    950: '#000000',
  },
}
SCSS
$custom: #b242d9;
$custom-light: #cd80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b242d9",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 284.503,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59775,
    "c": 0.22963,
    "h": 315.9
  },
  "luminance": 0.18371
}

Semantic roles & 50–950 ramp

primary
#B242D9
secondary
#ACDB9C
accent
#E93E6B
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B242D9

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

Preview Lab → · Contrast checker → · Palette generator →

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