#B254E7#B254E7

#B254E7 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.7% C 0.220 H 311.1°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B254E7
RGBrgb(178, 84, 231)
HSLhsl(278, 75%, 62%)
HSVhsv(278, 64%, 91%)
CMYKcmyk(22.9%, 63.6%, 0%, 9.4%)
CIE-LABlab(53.57, 61.71, -58.89)
CIE-LCHlch(53.57, 85.30, 316.34°)
OKLaboklab(62.66% 0.1447 -0.166)
OKLCHoklch(62.66% 0.22 311.1)
XYZxyz(35.9515, 21.5760, 77.8565)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254E7 #89E754
analogous
#6954E7 #B254E7 #E754D3
triadic
#B254E7 #E7B254 #54E7B2
tetradic
#B254E7 #E76954 #89E754 #54D3E7
square
#B254E7 #E76954 #89E754 #54D3E7
split-complementary
#B254E7 #D3E754 #54E769
monochromatic
#7518A9 #9A1FDF #B254E7 #CA8AEF #E2BFF6

Accessibility & contrast

On white

3.95
#B254E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#B254E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254E7
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254E7#FFFFFF#000000##000000
##B254E71.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEB
Deuteranopia (green-blind)
#4482E4
Tritanopia (blue-blind)
#AB7196
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b254e7;
/* rgb */ color: rgb(178, 84, 231);
/* oklch */ color: oklch(62.7% 0.220 311.1);
Tailwind
colors: {
  custom: {
    50: '#cd8aef',
    500: '#b254e7',
    950: '#000000',
  },
}
SCSS
$custom: #b254e7;
$custom-light: #cd8aef;
$custom-dark: #000000;
JSON
{
  "hex": "#b254e7",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 278.367,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62656,
    "c": 0.22021,
    "h": 311.1
  },
  "luminance": 0.21575
}

Semantic roles & 50–950 ramp

primary
#B254E7
secondary
#C4E7B0
accent
#D80E57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B254E7

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

Preview Lab → · Contrast checker → · Palette generator →

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