#B125E2#B125E2

#B125E2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 58.0% C 0.264 H 314.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B125E2
RGBrgb(177, 37, 226)
HSLhsl(284, 77%, 52%)
HSVhsv(284, 84%, 89%)
CMYKcmyk(21.7%, 83.6%, 0%, 11.4%)
CIE-LABlab(47.19, 77.35, -66.38)
CIE-LCHlch(47.19, 101.92, 319.36°)
OKLaboklab(57.99% 0.1856 -0.1877)
OKLCHoklch(57.99% 0.264 314.7)
XYZxyz(32.5182, 16.1624, 73.3435)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B125E2 #56E225
analogous
#5325E2 #B125E2 #E225B5
triadic
#B125E2 #E2B125 #25E2B1
tetradic
#B125E2 #E25325 #56E225 #25B5E2
square
#B125E2 #E25325 #56E225 #25B5E2
split-complementary
#B125E2 #B5E225 #25E253
monochromatic
#60117C #8A18B2 #B125E2 #C45BE9 #D891F0

Accessibility & contrast

On white

4.96
#B125E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B125E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B125E2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B125E2#FFFFFF#000000##FFFFFF
##B125E21.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0D73DE
Tritanopia (blue-blind)
#AC5788
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b125e2;
/* rgb */ color: rgb(177, 37, 226);
/* oklch */ color: oklch(58.0% 0.264 314.7);
Tailwind
colors: {
  custom: {
    50: '#ce74ec',
    500: '#b125e2',
    950: '#000000',
  },
}
SCSS
$custom: #b125e2;
$custom-light: #ce74ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b125e2",
  "rgb": {
    "r": 177,
    "g": 37,
    "b": 226
  },
  "hsl": {
    "h": 284.444,
    "s": 76.518,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5799,
    "c": 0.26401,
    "h": 314.7
  },
  "luminance": 0.16161
}

Semantic roles & 50–950 ramp

primary
#B125E2
secondary
#9DDB88
accent
#F33566
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140916
muted
#837B84

Preview Lab

Preview with #B125E2

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

Preview Lab → · Contrast checker → · Palette generator →

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