#B45FEC#B45FEC

#B45FEC is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.6% C 0.211 H 309.5°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B45FEC
RGBrgb(180, 95, 236)
HSLhsl(276, 79%, 65%)
HSVhsv(276, 60%, 93%)
CMYKcmyk(23.7%, 59.7%, 0%, 7.5%)
CIE-LABlab(56.03, 58.03, -57.74)
CIE-LCHlch(56.03, 81.86, 315.14°)
OKLaboklab(64.59% 0.1342 -0.1626)
OKLCHoklch(64.59% 0.211 309.5)
XYZxyz(38.0520, 23.9445, 81.9578)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B45FEC #97EC5F
analogous
#6D5FEC #B45FEC #EC5FDE
triadic
#B45FEC #ECB45F #5FECB4
tetradic
#B45FEC #EC6D5F #97EC5F #5FDEEC
square
#B45FEC #EC6D5F #97EC5F #5FDEEC
split-complementary
#B45FEC #DEEC5F #5FEC6D
monochromatic
#7916BA #9A28E6 #B45FEC #CE96F2 #E7CCF9

Accessibility & contrast

On white

3.63
#B45FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#B45FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B45FEC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B45FEC#FFFFFF#000000##000000
##B45FEC1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2583F0
Deuteranopia (green-blind)
#4D88E9
Tritanopia (blue-blind)
#AC7A9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b45fec;
/* rgb */ color: rgb(180, 95, 236);
/* oklch */ color: oklch(64.6% 0.211 309.5);
Tailwind
colors: {
  custom: {
    50: '#ce90f3',
    500: '#b45fec',
    950: '#000000',
  },
}
SCSS
$custom: #b45fec;
$custom-light: #ce90f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b45fec",
  "rgb": {
    "r": 180,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 276.17,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64585,
    "c": 0.21085,
    "h": 309.5
  },
  "luminance": 0.23944
}

Semantic roles & 50–950 ramp

primary
#B45FEC
secondary
#CEEBBB
accent
#DB0A5D
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #B45FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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