#B159F2#B159F2

#B159F2 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.9% C 0.224 H 307.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B159F2
RGBrgb(177, 89, 242)
HSLhsl(275, 85%, 65%)
HSVhsv(275, 63%, 95%)
CMYKcmyk(26.9%, 63.2%, 0%, 5.1%)
CIE-LABlab(54.97, 61.54, -62.81)
CIE-LCHlch(54.97, 87.94, 314.42°)
OKLaboklab(63.85% 0.1372 -0.1776)
OKLCHoklch(63.85% 0.224 307.7)
XYZxyz(37.7275, 22.9032, 86.4204)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B159F2 #9AF259
analogous
#6559F2 #B159F2 #F259E6
triadic
#B159F2 #F2B159 #59F2B1
tetradic
#B159F2 #F26559 #9AF259 #59E6F2
square
#B159F2 #F26559 #9AF259 #59E6F2
split-complementary
#B159F2 #E6F259 #59F265
monochromatic
#760FC1 #9620EE #B159F2 #CC92F6 #E6CBFB

Accessibility & contrast

On white

3.76
#B159F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#B159F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B159F2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B159F2#FFFFFF#000000##000000
##B159F21.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#3C84EF
Tritanopia (blue-blind)
#A7799E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b159f2;
/* rgb */ color: rgb(177, 89, 242);
/* oklch */ color: oklch(63.9% 0.224 307.7);
Tailwind
colors: {
  custom: {
    50: '#cd8df7',
    500: '#b159f2',
    950: '#000000',
  },
}
SCSS
$custom: #b159f2;
$custom-light: #cd8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#b159f2",
  "rgb": {
    "r": 177,
    "g": 89,
    "b": 242
  },
  "hsl": {
    "h": 274.51,
    "s": 85.475,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63854,
    "c": 0.22441,
    "h": 307.7
  },
  "luminance": 0.22903
}

Semantic roles & 50–950 ramp

primary
#B159F2
secondary
#CFEDB9
accent
#E20462
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140D17
muted
#837D85

Preview Lab

Preview with #B159F2

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

Preview Lab → · Contrast checker → · Palette generator →

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