#B242B2#B242B2

#B242B2 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.5% C 0.196 H 327.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B242B2
RGBrgb(178, 66, 178)
HSLhsl(300, 46%, 48%)
HSVhsv(300, 63%, 70%)
CMYKcmyk(0%, 62.9%, 0%, 30.2%)
CIE-LABlab(47.72, 59.38, -37.79)
CIE-LCHlch(47.72, 70.39, 327.53°)
OKLaboklab(57.46% 0.1654 -0.1044)
OKLCHoklch(57.46% 0.196 327.8)
XYZxyz(28.3438, 16.5776, 43.8178)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242B2 #42B242
analogous
#7A42B2 #B242B2 #B2427A
triadic
#B242B2 #B2B242 #42B2B2
tetradic
#B242B2 #B27A42 #42B242 #427AB2
square
#B242B2 #B27A42 #42B242 #427AB2
split-complementary
#B242B2 #7AB242 #42B27A
monochromatic
#592159 #853185 #B242B2 #C86AC8 #D896D8

Accessibility & contrast

On white

4.87
#B242B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B242B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242B2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242B2#FFFFFF#000000##FFFFFF
##B242B21.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#5D76AF
Tritanopia (blue-blind)
#B75174
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b242b2;
/* rgb */ color: rgb(178, 66, 178);
/* oklch */ color: oklch(57.5% 0.196 327.8);
Tailwind
colors: {
  custom: {
    50: '#cc7ec9',
    500: '#b242b2',
    950: '#000000',
  },
}
SCSS
$custom: #b242b2;
$custom-light: #cc7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b242b2",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57462,
    "c": 0.1956,
    "h": 327.8
  },
  "luminance": 0.16576
}

Semantic roles & 50–950 ramp

primary
#B242B2
secondary
#8CC48C
accent
#D65252
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B242B2

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

Preview Lab → · Contrast checker → · Palette generator →

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