#B254E8#B254E8

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

Color values

HEX#B254E8
RGBrgb(178, 84, 232)
HSLhsl(278, 76%, 62%)
HSVhsv(278, 64%, 91%)
CMYKcmyk(23.3%, 63.8%, 0%, 9%)
CIE-LABlab(53.63, 61.92, -59.35)
CIE-LCHlch(53.63, 85.78, 316.21°)
OKLaboklab(62.72% 0.1446 -0.1674)
OKLCHoklch(62.72% 0.221 310.8)
XYZxyz(36.0932, 21.6326, 78.6025)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254E8 #8AE854
analogous
#6854E8 #B254E8 #E854D4
triadic
#B254E8 #E8B254 #54E8B2
tetradic
#B254E8 #E86854 #8AE854 #54D4E8
square
#B254E8 #E86854 #8AE854 #54D4E8
split-complementary
#B254E8 #D4E854 #54E868
monochromatic
#7517AB #9A1EE1 #B254E8 #CA8AEF #E3C0F7

Accessibility & contrast

On white

3.94
#B254E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#B254E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254E8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254E8#FFFFFF#000000##000000
##B254E81.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CED
Deuteranopia (green-blind)
#4382E5
Tritanopia (blue-blind)
#AB7297
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b254e8;
/* rgb */ color: rgb(178, 84, 232);
/* oklch */ color: oklch(62.7% 0.221 310.8);
Tailwind
colors: {
  custom: {
    50: '#cd8af0',
    500: '#b254e8',
    950: '#000000',
  },
}
SCSS
$custom: #b254e8;
$custom-light: #cd8af0;
$custom-dark: #000000;
JSON
{
  "hex": "#b254e8",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 278.108,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62719,
    "c": 0.2212,
    "h": 310.8
  },
  "luminance": 0.21632
}

Semantic roles & 50–950 ramp

primary
#B254E8
secondary
#C5E7B1
accent
#D80D57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B254E8

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

Preview Lab → · Contrast checker → · Palette generator →

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