#B240B0#B240B0

#B240B0 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.197 H 328.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B240B0
RGBrgb(178, 64, 176)
HSLhsl(301, 47%, 47%)
HSVhsv(301, 64%, 70%)
CMYKcmyk(0%, 64%, 1.1%, 30.2%)
CIE-LABlab(47.32, 59.86, -37.25)
CIE-LCHlch(47.32, 70.50, 328.11°)
OKLaboklab(57.14% 0.1676 -0.1028)
OKLCHoklch(57.14% 0.197 328.5)
XYZxyz(28.0296, 16.2683, 42.7296)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240B0 #40B242
analogous
#7B40B2 #B240B0 #B24077
triadic
#B240B0 #B0B240 #40B0B2
tetradic
#B240B0 #B27B40 #40B242 #4077B2
square
#B240B0 #B27B40 #40B242 #4077B2
split-complementary
#B240B0 #77B240 #40B27B
monochromatic
#582057 #853083 #B240B0 #C867C7 #D894D7

Accessibility & contrast

On white

4.94
#B240B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B240B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240B0
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240B0#FFFFFF#000000##FFFFFF
##B240B01.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3367B3
Deuteranopia (green-blind)
#5D76AD
Tritanopia (blue-blind)
#B84E72
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b240b0;
/* rgb */ color: rgb(178, 64, 176);
/* oklch */ color: oklch(57.1% 0.197 328.5);
Tailwind
colors: {
  custom: {
    50: '#cc7dc8',
    500: '#b240b0',
    950: '#000000',
  },
}
SCSS
$custom: #b240b0;
$custom-light: #cc7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#b240b0",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 301.053,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5714,
    "c": 0.19663,
    "h": 328.5
  },
  "luminance": 0.16266
}

Semantic roles & 50–950 ramp

primary
#B240B0
secondary
#8AC48B
accent
#D75351
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B240B0

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

Preview Lab → · Contrast checker → · Palette generator →

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