#B945E2#B945E2

#B945E2 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.6% C 0.237 H 315.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B945E2
RGBrgb(185, 69, 226)
HSLhsl(284, 73%, 58%)
HSVhsv(284, 69%, 89%)
CMYKcmyk(18.1%, 69.5%, 0%, 11.4%)
CIE-LABlab(51.91, 68.59, -58.69)
CIE-LCHlch(51.91, 90.28, 319.44°)
OKLaboklab(61.56% 0.1696 -0.1651)
OKLCHoklch(61.56% 0.237 315.8)
XYZxyz(35.8610, 20.0629, 73.9203)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B945E2 #6EE245
analogous
#6A45E2 #B945E2 #E245BD
triadic
#B945E2 #E2B945 #45E2B9
tetradic
#B945E2 #E26A45 #6EE245 #45BDE2
square
#B945E2 #E26A45 #6EE245 #45BDE2
split-complementary
#B945E2 #BDE245 #45E26A
monochromatic
#741795 #9E20CA #B945E2 #CD7AEA #E1AFF3

Accessibility & contrast

On white

4.19
#B945E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#B945E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B945E2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B945E2#FFFFFF#000000##000000
##B945E21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#437FDE
Tritanopia (blue-blind)
#B6658F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b945e2;
/* rgb */ color: rgb(185, 69, 226);
/* oklch */ color: oklch(61.6% 0.237 315.8);
Tailwind
colors: {
  custom: {
    50: '#d282ec',
    500: '#b945e2',
    950: '#000000',
  },
}
SCSS
$custom: #b945e2;
$custom-light: #d282ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b945e2",
  "rgb": {
    "r": 185,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 284.331,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61557,
    "c": 0.23673,
    "h": 315.8
  },
  "luminance": 0.20062
}

Semantic roles & 50–950 ramp

primary
#B945E2
secondary
#B2E1A2
accent
#F03868
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B945E2

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

Preview Lab → · Contrast checker → · Palette generator →

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