#B240B3#B240B3

#B240B3 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.3% C 0.199 H 327.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B240B3
RGBrgb(178, 64, 179)
HSLhsl(299, 47%, 48%)
HSVhsv(299, 64%, 70%)
CMYKcmyk(0.6%, 64.2%, 0%, 29.8%)
CIE-LABlab(47.48, 60.37, -38.76)
CIE-LCHlch(47.48, 71.75, 327.30°)
OKLaboklab(57.3% 0.1678 -0.1072)
OKLCHoklch(57.3% 0.199 327.4)
XYZxyz(28.3297, 16.3883, 44.3102)
Luminance0.1639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240B3 #41B340
analogous
#7840B3 #B240B3 #B3407B
triadic
#B240B3 #B3B240 #40B3B2
tetradic
#B240B3 #B37840 #41B340 #407BB3
square
#B240B3 #B37840 #41B340 #407BB3
split-complementary
#B240B3 #7BB340 #40B378
monochromatic
#582059 #853086 #B240B3 #C867C9 #D894D9

Accessibility & contrast

On white

4.91
#B240B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B240B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240B3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240B3#FFFFFF#000000##FFFFFF
##B240B31.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B6
Deuteranopia (green-blind)
#5B76B0
Tritanopia (blue-blind)
#B75074
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b240b3;
/* rgb */ color: rgb(178, 64, 179);
/* oklch */ color: oklch(57.3% 0.199 327.4);
Tailwind
colors: {
  custom: {
    50: '#cc7dca',
    500: '#b240b3',
    950: '#000000',
  },
}
SCSS
$custom: #b240b3;
$custom-light: #cc7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#b240b3",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 299.478,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.1991,
    "h": 327.4
  },
  "luminance": 0.16386
}

Semantic roles & 50–950 ramp

primary
#B240B3
secondary
#8BC48A
accent
#D75152
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240B3

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

Preview Lab → · Contrast checker → · Palette generator →

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