#B240D9#B240D9

#B240D9 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.6% C 0.232 H 316.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B240D9
RGBrgb(178, 64, 217)
HSLhsl(285, 67%, 55%)
HSVhsv(285, 71%, 85%)
CMYKcmyk(18%, 70.5%, 0%, 14.9%)
CIE-LABlab(49.67, 67.35, -57.24)
CIE-LCHlch(49.67, 88.39, 319.64°)
OKLaboklab(59.58% 0.1669 -0.1611)
OKLCHoklch(59.58% 0.232 316)
XYZxyz(32.7159, 18.1428, 67.4108)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240D9 #67D940
analogous
#6640D9 #B240D9 #D940B3
triadic
#B240D9 #D9B240 #40D9B2
tetradic
#B240D9 #D96640 #67D940 #40B3D9
square
#B240D9 #D96640 #67D940 #40B3D9
split-complementary
#B240D9 #B3D940 #40D966
monochromatic
#691A84 #9224B7 #B240D9 #C773E3 #DBA6ED

Accessibility & contrast

On white

4.54
#B240D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#B240D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B240D9
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240D9#FFFFFF#000000##000000
##B240D91.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#3F79D6
Tritanopia (blue-blind)
#AF5F89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b240d9;
/* rgb */ color: rgb(178, 64, 217);
/* oklch */ color: oklch(59.6% 0.232 316.0);
Tailwind
colors: {
  custom: {
    50: '#cd7fe5',
    500: '#b240d9',
    950: '#000000',
  },
}
SCSS
$custom: #b240d9;
$custom-light: #cd7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#b240d9",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 284.706,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59578,
    "c": 0.23197,
    "h": 316
  },
  "luminance": 0.18142
}

Semantic roles & 50–950 ramp

primary
#B240D9
secondary
#ABDA9A
accent
#EA3E6A
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B240D9

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

Preview Lab → · Contrast checker → · Palette generator →

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