#B245DB#B245DB

#B245DB is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.2% C 0.228 H 315.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B245DB
RGBrgb(178, 69, 219)
HSLhsl(284, 68%, 56%)
HSVhsv(284, 68%, 86%)
CMYKcmyk(18.7%, 68.5%, 0%, 14.1%)
CIE-LABlab(50.50, 65.77, -57.05)
CIE-LCHlch(50.50, 87.06, 319.06°)
OKLaboklab(60.21% 0.1617 -0.1605)
OKLCHoklch(60.21% 0.228 315.2)
XYZxyz(33.2723, 18.8369, 68.8873)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B245DB #6EDB45
analogous
#6745DB #B245DB #DB45B9
triadic
#B245DB #DBB245 #45DBB2
tetradic
#B245DB #DB6745 #6EDB45 #45B9DB
square
#B245DB #DB6745 #6EDB45 #45B9DB
split-complementary
#B245DB #B9DB45 #45DB67
monochromatic
#6C1B8B #9425BE #B245DB #C778E5 #DCACEF

Accessibility & contrast

On white

4.41
#B245DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#B245DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B245DB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B245DB#FFFFFF#000000##000000
##B245DB1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#417BD8
Tritanopia (blue-blind)
#AF638B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b245db;
/* rgb */ color: rgb(178, 69, 219);
/* oklch */ color: oklch(60.2% 0.228 315.2);
Tailwind
colors: {
  custom: {
    50: '#cd81e7',
    500: '#b245db',
    950: '#000000',
  },
}
SCSS
$custom: #b245db;
$custom-light: #cd81e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b245db",
  "rgb": {
    "r": 178,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 283.6,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60209,
    "c": 0.22787,
    "h": 315.2
  },
  "luminance": 0.18836
}

Semantic roles & 50–950 ramp

primary
#B245DB
secondary
#B0DD9F
accent
#EA3D6D
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B245DB

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

Preview Lab → · Contrast checker → · Palette generator →

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