#B945EF#B945EF

#B945EF is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.4% C 0.248 H 312.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B945EF
RGBrgb(185, 69, 239)
HSLhsl(281, 84%, 60%)
HSVhsv(281, 71%, 94%)
CMYKcmyk(22.6%, 71.1%, 0%, 6.3%)
CIE-LABlab(52.73, 71.15, -64.69)
CIE-LCHlch(52.73, 96.16, 317.72°)
OKLaboklab(62.41% 0.1683 -0.1827)
OKLCHoklch(62.41% 0.248 312.6)
XYZxyz(37.7129, 20.8036, 83.6735)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B945EF #7BEF45
analogous
#6445EF #B945EF #EF45D0
triadic
#B945EF #EFB945 #45EFB9
tetradic
#B945EF #EF6445 #7BEF45 #45D0EF
square
#B945EF #EF6445 #7BEF45 #45D0EF
split-complementary
#B945EF #D0EF45 #45EF64
monochromatic
#790FAB #A114E3 #B945EF #CE7DF4 #E3B6F9

Accessibility & contrast

On white

4.07
#B945EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#B945EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B945EF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B945EF#FFFFFF#000000##000000
##B945EF1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F4
Deuteranopia (green-blind)
#3380EB
Tritanopia (blue-blind)
#B36A96
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b945ef;
/* rgb */ color: rgb(185, 69, 239);
/* oklch */ color: oklch(62.4% 0.248 312.6);
Tailwind
colors: {
  custom: {
    50: '#d383f5',
    500: '#b945ef',
    950: '#000000',
  },
}
SCSS
$custom: #b945ef;
$custom-light: #d383f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b945ef",
  "rgb": {
    "r": 185,
    "g": 69,
    "b": 239
  },
  "hsl": {
    "h": 280.941,
    "s": 84.158,
    "l": 60.392
  },
  "oklch": {
    "l": 0.62408,
    "c": 0.24839,
    "h": 312.6
  },
  "luminance": 0.20803
}

Semantic roles & 50–950 ramp

primary
#B945EF
secondary
#BCE8A7
accent
#E1054B
background
#FDF8FF
surface
#FBF0FE
border
#D4CBD6
text
#150B17
muted
#837C85

Preview Lab

Preview with #B945EF

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

Preview Lab → · Contrast checker → · Palette generator →

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