#B254F1#B254F1

#B254F1 is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.3% C 0.230 H 308.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B254F1
RGBrgb(178, 84, 241)
HSLhsl(276, 85%, 64%)
HSVhsv(276, 65%, 95%)
CMYKcmyk(26.1%, 65.1%, 0%, 5.5%)
CIE-LABlab(54.19, 63.85, -63.50)
CIE-LCHlch(54.19, 90.05, 315.16°)
OKLaboklab(63.3% 0.1441 -0.1795)
OKLCHoklch(63.3% 0.23 308.7)
XYZxyz(37.4044, 22.1571, 85.5083)
Luminance0.2216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254F1 #93F154
analogous
#6354F1 #B254F1 #F154E1
triadic
#B254F1 #F1B254 #54F1B2
tetradic
#B254F1 #F16354 #93F154 #54E1F1
square
#B254F1 #F16354 #93F154 #54E1F1
split-complementary
#B254F1 #E1F154 #54F163
monochromatic
#760FBB #991BEC #B254F1 #CB8DF6 #E5C5FA

Accessibility & contrast

On white

3.87
#B254F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#B254F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254F1
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254F1#FFFFFF#000000##000000
##B254F11.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF6
Deuteranopia (green-blind)
#3883ED
Tritanopia (blue-blind)
#A9759C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b254f1;
/* rgb */ color: rgb(178, 84, 241);
/* oklch */ color: oklch(63.3% 0.230 308.7);
Tailwind
colors: {
  custom: {
    50: '#cd8af6',
    500: '#b254f1',
    950: '#000000',
  },
}
SCSS
$custom: #b254f1;
$custom-light: #cd8af6;
$custom-dark: #000000;
JSON
{
  "hex": "#b254f1",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 275.924,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63299,
    "c": 0.23019,
    "h": 308.7
  },
  "luminance": 0.22156
}

Semantic roles & 50–950 ramp

primary
#B254F1
secondary
#CBECB5
accent
#E1045D
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B254F1

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

Preview Lab → · Contrast checker → · Palette generator →

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