#B234B2#B234B2

#B234B2 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.213 H 328.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B234B2
RGBrgb(178, 52, 178)
HSLhsl(300, 55%, 45%)
HSVhsv(300, 71%, 70%)
CMYKcmyk(0%, 70.8%, 0%, 30.2%)
CIE-LABlab(45.82, 64.72, -40.80)
CIE-LCHlch(45.82, 76.51, 327.77°)
OKLaboklab(56.09% 0.1805 -0.113)
OKLCHoklch(56.09% 0.213 328)
XYZxyz(27.6236, 15.1373, 43.5777)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B234B2 #34B234
analogous
#7334B2 #B234B2 #B23473
triadic
#B234B2 #B2B234 #34B2B2
tetradic
#B234B2 #B27334 #34B234 #3473B2
square
#B234B2 #B27334 #34B234 #3473B2
split-complementary
#B234B2 #73B234 #34B273
monochromatic
#531853 #832683 #B234B2 #CE56CE #DB85DB

Accessibility & contrast

On white

5.21
#B234B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B234B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B234B2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B234B2#FFFFFF#000000##FFFFFF
##B234B21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B6
Deuteranopia (green-blind)
#5572AF
Tritanopia (blue-blind)
#B84770
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b234b2;
/* rgb */ color: rgb(178, 52, 178);
/* oklch */ color: oklch(56.1% 0.213 328.0);
Tailwind
colors: {
  custom: {
    50: '#cd78c9',
    500: '#b234b2',
    950: '#000000',
  },
}
SCSS
$custom: #b234b2;
$custom-light: #cd78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b234b2",
  "rgb": {
    "r": 178,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56091,
    "c": 0.21297,
    "h": 328
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#B234B2
secondary
#7DC57D
accent
#DE4A4A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B234B2

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

Preview Lab → · Contrast checker → · Palette generator →

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