#B242B0#B242B0

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

Color values

HEX#B242B0
RGBrgb(178, 66, 176)
HSLhsl(301, 46%, 48%)
HSVhsv(301, 63%, 70%)
CMYKcmyk(0%, 62.9%, 1.1%, 30.2%)
CIE-LABlab(47.62, 59.04, -36.78)
CIE-LCHlch(47.62, 69.55, 328.08°)
OKLaboklab(57.36% 0.1653 -0.1014)
OKLCHoklch(57.36% 0.194 328.5)
XYZxyz(28.1445, 16.4979, 42.7679)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242B0 #42B244
analogous
#7C42B2 #B242B0 #B24278
triadic
#B242B0 #B0B242 #42B0B2
tetradic
#B242B0 #B27C42 #42B244 #4278B2
square
#B242B0 #B27C42 #42B244 #4278B2
split-complementary
#B242B0 #78B242 #42B27C
monochromatic
#592158 #853184 #B242B0 #C86AC6 #D896D7

Accessibility & contrast

On white

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

On black

4.30
#B242B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B242B0#FFFFFF#000000##FFFFFF
##B242B01.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3567B3
Deuteranopia (green-blind)
#5E76AD
Tritanopia (blue-blind)
#B85073
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b242b0;
/* rgb */ color: rgb(178, 66, 176);
/* oklch */ color: oklch(57.4% 0.194 328.5);
Tailwind
colors: {
  custom: {
    50: '#cc7ec8',
    500: '#b242b0',
    950: '#000000',
  },
}
SCSS
$custom: #b242b0;
$custom-light: #cc7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#b242b0",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 301.071,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57355,
    "c": 0.19394,
    "h": 328.5
  },
  "luminance": 0.16496
}

Semantic roles & 50–950 ramp

primary
#B242B0
secondary
#8CC48D
accent
#D65552
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B242B0

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

Preview Lab → · Contrast checker → · Palette generator →

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