#B240D3#B240D3

#B240D3 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.2% C 0.227 H 317.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B240D3
RGBrgb(178, 64, 211)
HSLhsl(287, 63%, 54%)
HSVhsv(287, 70%, 83%)
CMYKcmyk(15.6%, 69.7%, 0%, 17.3%)
CIE-LABlab(49.30, 66.20, -54.41)
CIE-LCHlch(49.30, 85.69, 320.59°)
OKLaboklab(59.19% 0.1674 -0.1528)
OKLCHoklch(59.19% 0.227 317.6)
XYZxyz(31.9497, 17.8363, 63.3752)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240D3 #61D340
analogous
#6940D3 #B240D3 #D340AA
triadic
#B240D3 #D3B240 #40D3B2
tetradic
#B240D3 #D36940 #61D340 #40AAD3
square
#B240D3 #D36940 #61D340 #40AAD3
split-complementary
#B240D3 #AAD340 #40D369
monochromatic
#671D7C #9028AE #B240D3 #C672DE #DAA3EA

Accessibility & contrast

On white

4.60
#B240D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B240D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B240D3
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240D3#FFFFFF#000000##FFFFFF
##B240D31.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED7
Deuteranopia (green-blind)
#4579D0
Tritanopia (blue-blind)
#B15D85
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b240d3;
/* rgb */ color: rgb(178, 64, 211);
/* oklch */ color: oklch(59.2% 0.227 317.6);
Tailwind
colors: {
  custom: {
    50: '#cd7ee1',
    500: '#b240d3',
    950: '#000000',
  },
}
SCSS
$custom: #b240d3;
$custom-light: #cd7ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#b240d3",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 286.531,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59194,
    "c": 0.22665,
    "h": 317.6
  },
  "luminance": 0.17835
}

Semantic roles & 50–950 ramp

primary
#B240D3
secondary
#A6D798
accent
#E64267
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B240D3

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

Preview Lab → · Contrast checker → · Palette generator →

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