#B54BE7#B54BE7

#B54BE7 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.233 H 312.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B54BE7
RGBrgb(181, 75, 231)
HSLhsl(281, 76%, 60%)
HSVhsv(281, 68%, 91%)
CMYKcmyk(21.6%, 67.5%, 0%, 9.4%)
CIE-LABlab(52.54, 66.32, -60.53)
CIE-LCHlch(52.54, 89.79, 317.61°)
OKLaboklab(61.99% 0.1582 -0.1707)
OKLCHoklch(61.99% 0.233 312.8)
XYZxyz(35.9934, 20.6265, 77.6711)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54BE7 #7DE74B
analogous
#674BE7 #B54BE7 #E74BCB
triadic
#B54BE7 #E7B54B #4BE7B5
tetradic
#B54BE7 #E7674B #7DE74B #4BCBE7
square
#B54BE7 #E7674B #7DE74B #4BCBE7
split-complementary
#B54BE7 #CBE74B #4BE767
monochromatic
#7516A2 #9C1DD8 #B54BE7 #CB81EE #E1B7F5

Accessibility & contrast

On white

4.10
#B54BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#B54BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B54BE7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54BE7#FFFFFF#000000##000000
##B54BE71.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#3E80E3
Tritanopia (blue-blind)
#B06B93
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b54be7;
/* rgb */ color: rgb(181, 75, 231);
/* oklch */ color: oklch(62.0% 0.233 312.8);
Tailwind
colors: {
  custom: {
    50: '#cf85ef',
    500: '#b54be7',
    950: '#000000',
  },
}
SCSS
$custom: #b54be7;
$custom-light: #cf85ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b54be7",
  "rgb": {
    "r": 181,
    "g": 75,
    "b": 231
  },
  "hsl": {
    "h": 280.769,
    "s": 76.471,
    "l": 60
  },
  "oklch": {
    "l": 0.61994,
    "c": 0.23272,
    "h": 312.8
  },
  "luminance": 0.20625
}

Semantic roles & 50–950 ramp

primary
#B54BE7
secondary
#BCE5A9
accent
#F33572
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B54BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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