#B245D8#B245D8

#B245D8 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.225 H 316.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B245D8
RGBrgb(178, 69, 216)
HSLhsl(284, 65%, 56%)
HSVhsv(284, 68%, 85%)
CMYKcmyk(17.6%, 68.1%, 0%, 15.3%)
CIE-LABlab(50.31, 65.18, -55.64)
CIE-LCHlch(50.31, 85.69, 319.51°)
OKLaboklab(60.02% 0.1619 -0.1564)
OKLCHoklch(60.02% 0.225 316)
XYZxyz(32.8810, 18.6803, 66.8261)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B245D8 #6BD845
analogous
#6845D8 #B245D8 #D845B4
triadic
#B245D8 #D8B245 #45D8B2
tetradic
#B245D8 #D86845 #6BD845 #45B4D8
square
#B245D8 #D86845 #6BD845 #45B4D8
split-complementary
#B245D8 #B4D845 #45D868
monochromatic
#6B1C86 #9327B9 #B245D8 #C778E3 #DCAAED

Accessibility & contrast

On white

4.43
#B245D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#B245D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B245D8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B245D8#FFFFFF#000000##000000
##B245D81.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#447BD5
Tritanopia (blue-blind)
#B06289
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b245d8;
/* rgb */ color: rgb(178, 69, 216);
/* oklch */ color: oklch(60.0% 0.225 316.0);
Tailwind
colors: {
  custom: {
    50: '#cd81e5',
    500: '#b245d8',
    950: '#000000',
  },
}
SCSS
$custom: #b245d8;
$custom-light: #cd81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b245d8",
  "rgb": {
    "r": 178,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 284.49,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60017,
    "c": 0.22512,
    "h": 316
  },
  "luminance": 0.18679
}

Semantic roles & 50–950 ramp

primary
#B245D8
secondary
#AEDB9E
accent
#E8406B
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B245D8

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

Preview Lab → · Contrast checker → · Palette generator →

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