#B123E2#B123E2

#B123E2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.9% C 0.265 H 314.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B123E2
RGBrgb(177, 35, 226)
HSLhsl(285, 77%, 51%)
HSVhsv(285, 85%, 89%)
CMYKcmyk(21.7%, 84.5%, 0%, 11.4%)
CIE-LABlab(47.03, 77.81, -66.63)
CIE-LCHlch(47.03, 102.44, 319.42°)
OKLaboklab(57.88% 0.1868 -0.1885)
OKLCHoklch(57.88% 0.265 314.7)
XYZxyz(32.4576, 16.0414, 73.3233)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B123E2 #54E223
analogous
#5123E2 #B123E2 #E223B4
triadic
#B123E2 #E2B123 #23E2B1
tetradic
#B123E2 #E25123 #54E223 #23B4E2
square
#B123E2 #E25123 #54E223 #23B4E2
split-complementary
#B123E2 #B4E223 #23E251
monochromatic
#5F107A #8917B1 #B123E2 #C459E9 #D78FF0

Accessibility & contrast

On white

4.99
#B123E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B123E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B123E2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B123E2#FFFFFF#000000##FFFFFF
##B123E21.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0973DE
Tritanopia (blue-blind)
#AC5688
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b123e2;
/* rgb */ color: rgb(177, 35, 226);
/* oklch */ color: oklch(57.9% 0.265 314.7);
Tailwind
colors: {
  custom: {
    50: '#ce73ec',
    500: '#b123e2',
    950: '#000000',
  },
}
SCSS
$custom: #b123e2;
$custom-light: #ce73ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b123e2",
  "rgb": {
    "r": 177,
    "g": 35,
    "b": 226
  },
  "hsl": {
    "h": 284.607,
    "s": 76.707,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5788,
    "c": 0.26534,
    "h": 314.7
  },
  "luminance": 0.1604
}

Semantic roles & 50–950 ramp

primary
#B123E2
secondary
#9CDB86
accent
#F33565
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140916
muted
#837B84

Preview Lab

Preview with #B123E2

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

Preview Lab → · Contrast checker → · Palette generator →

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