#B242AF#B242AF

#B242AF is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.3% C 0.193 H 328.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B242AF
RGBrgb(178, 66, 175)
HSLhsl(302, 46%, 48%)
HSVhsv(302, 63%, 70%)
CMYKcmyk(0%, 62.9%, 1.7%, 30.2%)
CIE-LABlab(47.57, 58.86, -36.27)
CIE-LCHlch(47.57, 69.14, 328.36°)
OKLaboklab(57.3% 0.1652 -0.1)
OKLCHoklch(57.3% 0.193 328.8)
XYZxyz(28.0459, 16.4585, 42.2487)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B242AF #42B245
analogous
#7D42B2 #B242AF #B24277
triadic
#B242AF #AFB242 #42AFB2
tetradic
#B242AF #B27D42 #42B245 #4277B2
square
#B242AF #B27D42 #42B245 #4277B2
split-complementary
#B242AF #77B242 #42B27D
monochromatic
#592157 #853183 #B242AF #C86AC5 #D896D6

Accessibility & contrast

On white

4.89
#B242AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B242AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B242AF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B242AF#FFFFFF#000000##FFFFFF
##B242AF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#5E76AC
Tritanopia (blue-blind)
#B84F73
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b242af;
/* rgb */ color: rgb(178, 66, 175);
/* oklch */ color: oklch(57.3% 0.193 328.8);
Tailwind
colors: {
  custom: {
    50: '#cc7ec7',
    500: '#b242af',
    950: '#000000',
  },
}
SCSS
$custom: #b242af;
$custom-light: #cc7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b242af",
  "rgb": {
    "r": 178,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 301.607,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57301,
    "c": 0.1931,
    "h": 328.8
  },
  "luminance": 0.16457
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B242AF

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

Preview Lab → · Contrast checker → · Palette generator →

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