#B582F8#B582F8

#B582F8 is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.6% C 0.172 H 302.1°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#B582F8
RGBrgb(181, 130, 248)
HSLhsl(266, 89%, 74%)
HSVhsv(266, 48%, 97%)
CMYKcmyk(27%, 47.6%, 0%, 2.7%)
CIE-LABlab(63.81, 42.72, -51.99)
CIE-LCHlch(63.81, 67.30, 309.41°)
OKLaboklab(70.55% 0.0917 -0.1459)
OKLCHoklch(70.55% 0.172 302.1)
XYZxyz(43.9782, 32.5663, 92.7578)
Luminance0.3257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B582F8 #C5F882
analogous
#828AF8 #B582F8 #F082F8
triadic
#B582F8 #F8B582 #82F8B5
tetradic
#B582F8 #F8828A #C5F882 #82F8F0
square
#B582F8 #F8828A #C5F882 #82F8F0
split-complementary
#B582F8 #F8F082 #8AF882
monochromatic
#700EF2 #9348F5 #B582F8 #D7BCFB #EEE2FD

Accessibility & contrast

On white

2.80
#B582F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#B582F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B582F8
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B582F8#FFFFFF#000000##000000
##B582F81.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9AFC
Deuteranopia (green-blind)
#6B9AF5
Tritanopia (blue-blind)
#A997B1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b582f8;
/* rgb */ color: rgb(181, 130, 248);
/* oklch */ color: oklch(70.6% 0.172 302.1);
Tailwind
colors: {
  custom: {
    50: '#cea7fb',
    500: '#b582f8',
    950: '#000000',
  },
}
SCSS
$custom: #b582f8;
$custom-light: #cea7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b582f8",
  "rgb": {
    "r": 181,
    "g": 130,
    "b": 248
  },
  "hsl": {
    "h": 265.932,
    "s": 89.394,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70554,
    "c": 0.17233,
    "h": 302.1
  },
  "luminance": 0.32566
}

Semantic roles & 50–950 ramp

primary
#B582F8
secondary
#E8F5D6
accent
#E60082
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B582F8

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

Preview Lab → · Contrast checker → · Palette generator →

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