#B126FF#B126FF

#B126FF is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 60.2% C 0.287 H 308.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B126FF
RGBrgb(177, 38, 255)
HSLhsl(278, 100%, 57%)
HSVhsv(278, 85%, 100%)
CMYKcmyk(30.6%, 85.1%, 0%, 0%)
CIE-LABlab(49.44, 82.59, -79.02)
CIE-LCHlch(49.44, 114.30, 316.26°)
OKLaboklab(60.23% 0.1775 -0.2249)
OKLCHoklch(60.23% 0.287 308.3)
XYZxyz(36.8708, 17.9540, 96.1115)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B126FF #74FF26
analogous
#4426FF #B126FF #FF26E1
triadic
#B126FF #FFB126 #26FFB1
tetradic
#B126FF #FF4426 #74FF26 #26E1FF
square
#B126FF #FF4426 #74FF26 #26E1FF
split-complementary
#B126FF #E1FF26 #26FF44
monochromatic
#6D00AB #9400E8 #B126FF #C763FF #DDA0FF

Accessibility & contrast

On white

4.57
#B126FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#B126FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B126FF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B126FF#FFFFFF#000000##000000
##B126FF1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071FF
Deuteranopia (green-blind)
#0077FB
Tritanopia (blue-blind)
#A46599
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b126ff;
/* rgb */ color: rgb(177, 38, 255);
/* oklch */ color: oklch(60.2% 0.287 308.3);
Tailwind
colors: {
  custom: {
    50: '#cf76ff',
    500: '#b126ff',
    950: '#000000',
  },
}
SCSS
$custom: #b126ff;
$custom-light: #cf76ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b126ff",
  "rgb": {
    "r": 177,
    "g": 38,
    "b": 255
  },
  "hsl": {
    "h": 278.433,
    "s": 100,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60229,
    "c": 0.28651,
    "h": 308.3
  },
  "luminance": 0.17953
}

Semantic roles & 50–950 ramp

primary
#B126FF
secondary
#B4EC95
accent
#FF2976
background
#FDF7FF
surface
#FBEEFF
border
#D4C9D7
text
#150A18
muted
#837C86

Preview Lab

Preview with #B126FF

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

Preview Lab → · Contrast checker → · Palette generator →

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