#B240C9#B240C9

#B240C9 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.218 H 320.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B240C9
RGBrgb(178, 64, 201)
HSLhsl(290, 56%, 52%)
HSVhsv(290, 68%, 79%)
CMYKcmyk(11.4%, 68.2%, 0%, 21.2%)
CIE-LABlab(48.70, 64.32, -49.62)
CIE-LCHlch(48.70, 81.23, 322.35°)
OKLaboklab(58.57% 0.168 -0.1388)
OKLCHoklch(58.57% 0.218 320.4)
XYZxyz(30.7348, 17.3504, 56.9770)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240C9 #57C940
analogous
#6E40C9 #B240C9 #C9409C
triadic
#B240C9 #C9B240 #40C9B2
tetradic
#B240C9 #C96E40 #57C940 #409CC9
square
#B240C9 #C96E40 #57C940 #409CC9
split-complementary
#B240C9 #9CC940 #40C96E
monochromatic
#621F6F #8C2D9F #B240C9 #C570D6 #D89FE4

Accessibility & contrast

On white

4.70
#B240C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B240C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B240C9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240C9#FFFFFF#000000##FFFFFF
##B240C91.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076CCD
Deuteranopia (green-blind)
#4D78C6
Tritanopia (blue-blind)
#B35980
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b240c9;
/* rgb */ color: rgb(178, 64, 201);
/* oklch */ color: oklch(58.6% 0.218 320.4);
Tailwind
colors: {
  custom: {
    50: '#cd7eda',
    500: '#b240c9',
    950: '#000000',
  },
}
SCSS
$custom: #b240c9;
$custom-light: #cd7eda;
$custom-dark: #000000;
JSON
{
  "hex": "#b240c9",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 289.927,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58574,
    "c": 0.21787,
    "h": 320.4
  },
  "luminance": 0.17349
}

Semantic roles & 50–950 ramp

primary
#B240C9
secondary
#9ED094
accent
#DF4962
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240C9

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

Preview Lab → · Contrast checker → · Palette generator →

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