#B958F6#B958F6

#B958F6 is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.9% C 0.232 H 309.6°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B958F6
RGBrgb(185, 88, 246)
HSLhsl(277, 90%, 65%)
HSVhsv(277, 64%, 96%)
CMYKcmyk(24.8%, 64.2%, 0%, 3.5%)
CIE-LABlab(56.04, 64.60, -63.27)
CIE-LCHlch(56.04, 90.42, 315.59°)
OKLaboklab(64.91% 0.1481 -0.1787)
OKLCHoklch(64.91% 0.232 309.6)
XYZxyz(40.1286, 23.9483, 89.6794)
Luminance0.2395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B958F6 #95F658
analogous
#6A58F6 #B958F6 #F658E4
triadic
#B958F6 #F6B958 #58F6B9
tetradic
#B958F6 #F66A58 #95F658 #58E4F6
square
#B958F6 #F66A58 #95F658 #58E4F6
split-complementary
#B958F6 #E4F658 #58F66A
monochromatic
#7F0BC9 #A11EF3 #B958F6 #D192F9 #EACCFC

Accessibility & contrast

On white

3.63
#B958F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#B958F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B958F6
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B958F6#FFFFFF#000000##000000
##B958F61.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FB
Deuteranopia (green-blind)
#4188F2
Tritanopia (blue-blind)
#B078A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b958f6;
/* rgb */ color: rgb(185, 88, 246);
/* oklch */ color: oklch(64.9% 0.232 309.6);
Tailwind
colors: {
  custom: {
    50: '#d28dfa',
    500: '#b958f6',
    950: '#000000',
  },
}
SCSS
$custom: #b958f6;
$custom-light: #d28dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b958f6",
  "rgb": {
    "r": 185,
    "g": 88,
    "b": 246
  },
  "hsl": {
    "h": 276.835,
    "s": 89.773,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64912,
    "c": 0.23207,
    "h": 309.6
  },
  "luminance": 0.23948
}

Semantic roles & 50–950 ramp

primary
#B958F6
secondary
#CFEFBA
accent
#E60059
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150D17
muted
#837D85

Preview Lab

Preview with #B958F6

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

Preview Lab → · Contrast checker → · Palette generator →

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