#B245DC#B245DC

#B245DC is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.3% C 0.229 H 315.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B245DC
RGBrgb(178, 69, 220)
HSLhsl(283, 68%, 57%)
HSVhsv(283, 69%, 86%)
CMYKcmyk(19.1%, 68.6%, 0%, 13.7%)
CIE-LABlab(50.56, 65.96, -57.52)
CIE-LCHlch(50.56, 87.52, 318.91°)
OKLaboklab(60.27% 0.1616 -0.1619)
OKLCHoklch(60.27% 0.229 315)
XYZxyz(33.4044, 18.8897, 69.5827)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B245DC #6FDC45
analogous
#6745DC #B245DC #DC45BB
triadic
#B245DC #DCB245 #45DCB2
tetradic
#B245DC #DC6745 #6FDC45 #45BBDC
square
#B245DC #DC6745 #6FDC45 #45BBDC
split-complementary
#B245DC #BBDC45 #45DC67
monochromatic
#6D1A8C #9424C0 #B245DC #C779E6 #DDACEF

Accessibility & contrast

On white

4.40
#B245DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#B245DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B245DC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B245DC#FFFFFF#000000##000000
##B245DC1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#407BD9
Tritanopia (blue-blind)
#AF648C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b245dc;
/* rgb */ color: rgb(178, 69, 220);
/* oklch */ color: oklch(60.3% 0.229 315.0);
Tailwind
colors: {
  custom: {
    50: '#cd81e8',
    500: '#b245dc',
    950: '#000000',
  },
}
SCSS
$custom: #b245dc;
$custom-light: #cd81e8;
$custom-dark: #000000;
JSON
{
  "hex": "#b245dc",
  "rgb": {
    "r": 178,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 283.311,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60273,
    "c": 0.22878,
    "h": 315
  },
  "luminance": 0.18889
}

Semantic roles & 50–950 ramp

primary
#B245DC
secondary
#B1DDA0
accent
#EB3D6D
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B245DC

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

Preview Lab → · Contrast checker → · Palette generator →

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