#B242B1#B242B1

#B242B1 is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.195 H 328.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B242B1
RGBrgb(178, 66, 177)
HSLhsl(301, 46%, 48%)
HSVhsv(301, 63%, 70%)
CMYKcmyk(0%, 62.9%, 0.6%, 30.2%)
CIE-LABlab(47.67, 59.21, -37.29)
CIE-LCHlch(47.67, 69.97, 327.80°)
OKLaboklab(57.41% 0.1654 -0.1029)
OKLCHoklch(57.41% 0.195 328.1)
XYZxyz(28.2438, 16.5376, 43.2909)
Luminance0.1654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242B1 #42B243
analogous
#7B42B2 #B242B1 #B24279
triadic
#B242B1 #B1B242 #42B1B2
tetradic
#B242B1 #B27B42 #42B243 #4279B2
square
#B242B1 #B27B42 #42B243 #4279B2
split-complementary
#B242B1 #79B242 #42B27B
monochromatic
#592158 #853185 #B242B1 #C86AC7 #D896D8

Accessibility & contrast

On white

4.88
#B242B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B242B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242B1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242B1#FFFFFF#000000##FFFFFF
##B242B11.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B4
Deuteranopia (green-blind)
#5D76AE
Tritanopia (blue-blind)
#B75074
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b242b1;
/* rgb */ color: rgb(178, 66, 177);
/* oklch */ color: oklch(57.4% 0.195 328.1);
Tailwind
colors: {
  custom: {
    50: '#cc7ec9',
    500: '#b242b1',
    950: '#000000',
  },
}
SCSS
$custom: #b242b1;
$custom-light: #cc7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b242b1",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 300.536,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57408,
    "c": 0.19476,
    "h": 328.1
  },
  "luminance": 0.16536
}

Semantic roles & 50–950 ramp

primary
#B242B1
secondary
#8CC48C
accent
#D65352
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B242B1

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

Preview Lab → · Contrast checker → · Palette generator →

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