#B240B2#B240B2

#B240B2 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.2% C 0.198 H 327.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B240B2
RGBrgb(178, 64, 178)
HSLhsl(300, 47%, 47%)
HSVhsv(300, 64%, 70%)
CMYKcmyk(0%, 64%, 0%, 30.2%)
CIE-LABlab(47.43, 60.20, -38.26)
CIE-LCHlch(47.43, 71.33, 327.56°)
OKLaboklab(57.25% 0.1678 -0.1057)
OKLCHoklch(57.25% 0.198 327.8)
XYZxyz(28.2290, 16.3480, 43.7795)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240B2 #40B240
analogous
#7940B2 #B240B2 #B24079
triadic
#B240B2 #B2B240 #40B2B2
tetradic
#B240B2 #B27940 #40B240 #4079B2
square
#B240B2 #B27940 #40B240 #4079B2
split-complementary
#B240B2 #79B240 #40B279
monochromatic
#582058 #853085 #B240B2 #C867C8 #D894D8

Accessibility & contrast

On white

4.92
#B240B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B240B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240B2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240B2#FFFFFF#000000##FFFFFF
##B240B21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#B74F73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b240b2;
/* rgb */ color: rgb(178, 64, 178);
/* oklch */ color: oklch(57.2% 0.198 327.8);
Tailwind
colors: {
  custom: {
    50: '#cc7dc9',
    500: '#b240b2',
    950: '#000000',
  },
}
SCSS
$custom: #b240b2;
$custom-light: #cc7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b240b2",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57248,
    "c": 0.19827,
    "h": 327.8
  },
  "luminance": 0.16346
}

Semantic roles & 50–950 ramp

primary
#B240B2
secondary
#8AC48A
accent
#D75151
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240B2

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

Preview Lab → · Contrast checker → · Palette generator →

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