#B240DA#B240DA

#B240DA is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.6% C 0.233 H 315.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B240DA
RGBrgb(178, 64, 218)
HSLhsl(284, 68%, 55%)
HSVhsv(284, 71%, 85%)
CMYKcmyk(18.3%, 70.6%, 0%, 14.5%)
CIE-LABlab(49.73, 67.55, -57.71)
CIE-LCHlch(49.73, 88.84, 319.49°)
OKLaboklab(59.64% 0.1668 -0.1624)
OKLCHoklch(59.64% 0.233 315.8)
XYZxyz(32.8464, 18.1950, 68.0978)
Luminance0.1819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240DA #68DA40
analogous
#6540DA #B240DA #DA40B5
triadic
#B240DA #DAB240 #40DAB2
tetradic
#B240DA #DA6540 #68DA40 #40B5DA
square
#B240DA #DA6540 #68DA40 #40B5DA
split-complementary
#B240DA #B5DA40 #40DA65
monochromatic
#6A1A86 #9224B9 #B240DA #C773E4 #DBA7EE

Accessibility & contrast

On white

4.53
#B240DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#B240DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B240DA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240DA#FFFFFF#000000##000000
##B240DA1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DE
Deuteranopia (green-blind)
#3E79D7
Tritanopia (blue-blind)
#AF6089
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b240da;
/* rgb */ color: rgb(178, 64, 218);
/* oklch */ color: oklch(59.6% 0.233 315.8);
Tailwind
colors: {
  custom: {
    50: '#cd7fe6',
    500: '#b240da',
    950: '#000000',
  },
}
SCSS
$custom: #b240da;
$custom-light: #cd7fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#b240da",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 284.416,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59643,
    "c": 0.23285,
    "h": 315.8
  },
  "luminance": 0.18194
}

Semantic roles & 50–950 ramp

primary
#B240DA
secondary
#ABDB9B
accent
#EA3D6A
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B240DA

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

Preview Lab → · Contrast checker → · Palette generator →

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