#B45CEB#B45CEB

#B45CEB is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.1% C 0.214 H 310.1°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B45CEB
RGBrgb(180, 92, 235)
HSLhsl(277, 78%, 64%)
HSVhsv(277, 61%, 92%)
CMYKcmyk(23.4%, 60.9%, 0%, 7.8%)
CIE-LABlab(55.44, 59.26, -58.13)
CIE-LCHlch(55.44, 83.01, 315.55°)
OKLaboklab(64.13% 0.1378 -0.1638)
OKLCHoklch(64.13% 0.214 310.1)
XYZxyz(37.6421, 23.3565, 81.1065)
Luminance0.2336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B45CEB #93EB5C
analogous
#6D5CEB #B45CEB #EB5CDB
triadic
#B45CEB #EBB45C #5CEBB4
tetradic
#B45CEB #EB6D5C #93EB5C #5CDBEB
square
#B45CEB #EB6D5C #93EB5C #5CDBEB
split-complementary
#B45CEB #DBEB5C #5CEB6D
monochromatic
#7916B6 #9B25E4 #B45CEB #CD93F2 #E6C9F8

Accessibility & contrast

On white

3.70
#B45CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#B45CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B45CEB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B45CEB#FFFFFF#000000##000000
##B45CEB1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D81EF
Deuteranopia (green-blind)
#4B86E8
Tritanopia (blue-blind)
#AD789B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b45ceb;
/* rgb */ color: rgb(180, 92, 235);
/* oklch */ color: oklch(64.1% 0.214 310.1);
Tailwind
colors: {
  custom: {
    50: '#ce8ff2',
    500: '#b45ceb',
    950: '#000000',
  },
}
SCSS
$custom: #b45ceb;
$custom-light: #ce8ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#b45ceb",
  "rgb": {
    "r": 180,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 276.923,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64134,
    "c": 0.21401,
    "h": 310.1
  },
  "luminance": 0.23356
}

Semantic roles & 50–950 ramp

primary
#B45CEB
secondary
#CCEAB8
accent
#DA0B5B
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #B45CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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