#B245D9#B245D9

#B245D9 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.1% C 0.226 H 315.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#B245D9
RGBrgb(178, 69, 217)
HSLhsl(284, 66%, 56%)
HSVhsv(284, 68%, 85%)
CMYKcmyk(18%, 68.2%, 0%, 14.9%)
CIE-LABlab(50.37, 65.37, -56.11)
CIE-LCHlch(50.37, 86.15, 319.36°)
OKLaboklab(60.08% 0.1619 -0.1578)
OKLCHoklch(60.08% 0.226 315.7)
XYZxyz(33.0106, 18.7322, 67.5090)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B245D9 #6CD945
analogous
#6845D9 #B245D9 #D945B6
triadic
#B245D9 #D9B245 #45D9B2
tetradic
#B245D9 #D96845 #6CD945 #45B6D9
square
#B245D9 #D96845 #6CD945 #45B6D9
split-complementary
#B245D9 #B6D945 #45D968
monochromatic
#6B1C88 #9426BB #B245D9 #C778E3 #DCABEE

Accessibility & contrast

On white

4.42
#B245D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#B245D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B245D9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B245D9#FFFFFF#000000##000000
##B245D91.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#437BD6
Tritanopia (blue-blind)
#AF628A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b245d9;
/* rgb */ color: rgb(178, 69, 217);
/* oklch */ color: oklch(60.1% 0.226 315.7);
Tailwind
colors: {
  custom: {
    50: '#cd81e5',
    500: '#b245d9',
    950: '#000000',
  },
}
SCSS
$custom: #b245d9;
$custom-light: #cd81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b245d9",
  "rgb": {
    "r": 178,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 284.189,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60081,
    "c": 0.22604,
    "h": 315.7
  },
  "luminance": 0.18731
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B245D9

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

Preview Lab → · Contrast checker → · Palette generator →

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